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

Disassembly:
mov eax, 0x424c4c
call fcn.00401160
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x20], esi
mov eax, edi
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x7c], eax
jbe 0x408779
mov dl, byte [esi + 0x60]
mov ecx, eax
mov eax, dword [esi + 0x78]
shl ecx, 2
mov ebx, dword [ecx + eax]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x28], ebx
test dl, dl
je 0x408682
mov dword [ebp - 0x24], 1
jmp 0x408687
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
test dl, dl
je 0x408692
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x408699
mov dword [ebp - 0x18], 1
lea ecx, [ebx + 0x70]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x1c], ecx
jmp 0x4086d4
mov eax, dword [ecx]
dec ebx
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4086d4
mov dword [ebp - 4], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4086c3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
push 4
push eax
call fcn.00401006
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x4086a4
mov ebx, dword [ebp - 0x24]
mov dword [ecx + 4], edi
test ebx, ebx
je 0x4086ef
call fcn.00402b0f
mov ecx, dword [ebp - 0x1c]
sub ebx, 1
jne 0x4086e2
mov ecx, dword [ebp - 0x28]
add ecx, 0x7c
mov dword [ebp - 0x24], ecx
mov ebx, dword [ecx + 4]
jmp 0x408731
mov eax, dword [ecx]
dec ebx
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x408731
mov dword [ebp - 4], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x408720
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
push 4
push eax
call fcn.00401006
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
test ebx, ebx
jne 0x4086fd
mov dword [ecx + 4], edi
cmp dword [ebp - 0x18], ebx
jbe 0x408769
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
je 0x408757
mov dword [eax], edi
jmp 0x408759
mov eax, edi
push eax
mov ecx, ebx
call fcn.00402cdd
sub esi, 1
jne 0x408743
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x7c]
jb 0x40865f
mov ebx, edi
cmp dword [esi + 0x18], ebx
jbe 0x4088c9
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x3c]
mov edx, dword [ecx + ebx*8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + edx*4]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x28], edx
sub ecx, dword [eax + edx*4]
mov al, byte [esi + 0x60]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], al
test al, al
je 0x4087b8
mov esi, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x24], esi
jmp 0x4087bb
mov dword [ebp - 0x24], edx
test al, al
jne 0x4087c6
mov edx, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x28], edx
and dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x1c]
test cl, cl
mov esi, eax
cmovne esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
xor esi, esi
test cl, cl
cmovne esi, eax
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + edx*4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x6c]
push ecx
mov ecx, dword [eax + ebx*4]
call fcn.00411bf8
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x408837
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x427774
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x408858
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x427774
push ecx
call dword [eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x408899
test ecx, ecx
je 0x408899
mov ecx, dword [eax]
push 0x80000
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push 0x80000
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4088aa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 5
test eax, eax
je 0x4088bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x408784
cmp byte [esi + 0x60], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x78]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
je 0x4088e9
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx]
call fcn.00402b82
jmp 0x4088f8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax]
mov ecx, dword [ecx]
call fcn.00402b82
cmp dword [esi + 0x24], edi
jbe 0x408950
sub dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edi*4]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0x30]
sub ecx, dword [eax + edx*4]
cmp byte [esi + 0x60], 0
mov eax, dword [esi + 0x78]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + edx*4]
je 0x408937
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax + ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
call fcn.00402b82
jmp 0x408947
mov ecx, dword [ecx + 0x70]
mov eax, dword [ebp + 8]
push dword [ebx]
mov ecx, dword [ecx + eax*4]
call fcn.00402b82
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x408900
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8