Function at 0x1804e2d6
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.18023d02
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 0x1804e46c
mov edi, 0x180b41a8
mov eax, dword [ebx + 0x80]
sub eax, dword [ebx + 0x7c]
mov esi, dword [esp + 0x14]
sar eax, 2
cmp esi, eax
jb 0x1804e331
call fcn.1807753a
mov eax, dword [ebx + 0x7c]
lea eax, [eax + esi*4]
mov dword [esp + 0x20], eax
mov eax, dword [0x180b41a8]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, edi
lea esi, [esp + 0x6c]
mov dword [esp + 0x68], eax
call fcn.18003998
mov ecx, edi
lea esi, [esp + 0x70]
call fcn.18003998
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.18003998
mov ecx, edi
lea esi, [esp + 0x8c]
call fcn.18003998
movzx eax, byte [ebx + 0x93]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
push eax
lea eax, [esp + 0x6c]
call fcn.1804d67a
pop ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x1804e3cb
and dword [esp + 0x20], ecx
jmp 0x1804e3db
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 0x1804e403
lea eax, [esp + 0x68]
push eax
push 1
push dword [esp + 0x44]
call fcn.1804eb9b
mov dword [esp + 0x3c], eax
jmp 0x1804e429
mov esi, dword [esp + 0x3c]
cmp ecx, esi
jbe 0x1804e410
call fcn.1807753a
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.1804ea7d
mov al, byte [esp + 0x85]
and byte [esp + 0x1c], al
mov eax, dword [esp + 0x78]
test eax, eax
jge 0x1804e447
cmp dword [esp + 0x18], 0
jl 0x1804e447
mov dword [esp + 0x18], eax
lea esi, [esp + 0x68]
call fcn.1804c582
mov eax, dword [ebx + 0x80]
sub eax, dword [ebx + 0x7c]
inc dword [esp + 0x14]
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x1804e318
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 0x1804e490
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.18003b93
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1804d7ae
mov eax, dword [esp + 0x30]
add esp, 0x14
add eax, 0xfffffff0
call fcn.18003e1e
xor eax, eax
inc eax
cmp dword [esp + 0x18], esi
jge 0x1804e4d5
push 3
jmp 0x1804e4e0
cmp byte [ebx + 0x90], 0
je 0x1804e4e1
push 0xc
pop eax
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x1c]
lea edi, [esp + 0x4c]
call fcn.1804d31d
lea esi, [esp + 0x2c]
lea eax, [esp + 0x50]
call fcn.1804e82a
push ebx
mov ebx, edi
call fcn.1804e6a0
lea esi, [esp + 0x50]
call fcn.1804c4b9
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [esp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [esp + 0x2c]
call fcn.1804c4b9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret