Function at 0x1804dc6b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
lea esi, [esp + 0x2c]
mov ebx, eax
mov byte [esp + 0x1c], 1
call fcn.18027454
mov eax, dword [ebx + 0x80]
sub eax, dword [ebx + 0x7c]
xor esi, esi
sar eax, 2
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
test eax, eax
jbe 0x1804de01
mov edi, 0x180b4188
mov eax, dword [ebx + 0x80]
sub eax, dword [ebx + 0x7c]
mov esi, dword [esp + 0x14]
sar eax, 2
cmp esi, eax
jb 0x1804dcc6
call fcn.180771ea
mov eax, dword [ebx + 0x7c]
lea eax, [eax + esi*4]
mov dword [esp + 0x20], eax
mov eax, dword [0x180b4188]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, edi
lea esi, [esp + 0x6c]
mov dword [esp + 0x68], eax
call fcn.18003984
mov ecx, edi
lea esi, [esp + 0x70]
call fcn.18003984
xor eax, eax
mov ecx, edi
lea esi, [esp + 0x88]
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov byte [esp + 0x84], al
mov byte [esp + 0x85], al
call fcn.18003984
mov ecx, edi
lea esi, [esp + 0x8c]
call fcn.18003984
movzx eax, byte [ebx + 0x93]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
push eax
lea eax, [esp + 0x6c]
call fcn.1804d00f
pop ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x1804dd60
and dword [esp + 0x20], ecx
jmp 0x1804dd70
mov eax, dword [esp + 0x40]
sub eax, ecx
push 0x28
cdq
pop esi
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
sub eax, ecx
push 0x28
cdq
pop esi
idiv esi
cmp eax, dword [esp + 0x20]
jae 0x1804dd98
lea eax, [esp + 0x68]
push eax
push 1
push dword [esp + 0x44]
call fcn.1804e530
mov dword [esp + 0x3c], eax
jmp 0x1804ddbe
mov esi, dword [esp + 0x3c]
cmp ecx, esi
jbe 0x1804dda5
call fcn.180771ea
mov eax, dword [esp + 0x2c]
push esi
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
call fcn.1804e412
mov al, byte [esp + 0x85]
and byte [esp + 0x1c], al
mov eax, dword [esp + 0x78]
test eax, eax
jge 0x1804dddc
cmp dword [esp + 0x18], 0
jl 0x1804dddc
mov dword [esp + 0x18], eax
lea esi, [esp + 0x68]
call fcn.1804bf22
mov eax, dword [ebx + 0x80]
sub eax, dword [ebx + 0x7c]
inc dword [esp + 0x14]
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x1804dcad
xor esi, esi
mov eax, dword [ebx + 0x2c]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x1804de25
push dword [esp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x10], esi
movzx eax, byte [ebx + 0x90]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
call fcn.18003b7f
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1804d143
mov eax, dword [esp + 0x30]
add esp, 0x14
add eax, 0xfffffff0
call fcn.18003e0a
xor eax, eax
inc eax
cmp dword [esp + 0x18], esi
jge 0x1804de6a
push 3
jmp 0x1804de75
cmp byte [ebx + 0x90], 0
je 0x1804de76
push 0xc
pop eax
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x1c]
lea edi, [esp + 0x4c]
call fcn.1804ccb2
lea esi, [esp + 0x2c]
lea eax, [esp + 0x50]
call fcn.1804e1bf
push ebx
mov ebx, edi
call fcn.1804e035
lea esi, [esp + 0x50]
call fcn.1804be59
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.18003e0a
push dword [esp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x2c]
call fcn.1804be59
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret