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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
xor edi, edi
mov ebx, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call fcn.00404030
cmp eax, edi
jne 0x4042d7
mov edx, dword [esi + 0x10]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp edx, edi
ja 0x4042e2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
xor edi, edi
mov ecx, dword [esi]
lea eax, [ebp + ebp*2]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0xc]
mov ebx, ecx
or ebx, eax
je 0x404432
cmp ecx, 0x30101
jne 0x40430f
cmp eax, edi
je 0x404432
cmp ecx, 0x3030103
jne 0x404346
cmp eax, edi
jne 0x404346
cmp ebp, 1
jne 0x4045c0
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], edi
call fcn.00404640
add esp, 8
jmp 0x40458c
cmp ecx, 0x303011b
jne 0x4045c0
cmp eax, edi
jne 0x4045c0
mov esi, dword [esp + 0x64]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esp + 0x44], ebx
cmp ebp, 3
jne 0x4045c0
push 1
call fcn.00404230
mov esi, dword [esp + 0x70]
add esp, 4
add eax, dword [esp + 0x70]
push 0
adc edx, dword [esp + 0x78]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xc]
push esi
mov dword [esp + 0x34], eax
call edx
add esp, 0xc
test eax, eax
jne 0x4042d7
cmp edi, edi
jne 0x4045a6
cmp eax, ebx
jne 0x4045a6
mov eax, dword [esp + 0x80]
push edi
push eax
mov eax, dword [eax]
call eax
mov ebx, dword [esp + 0x8c]
add esp, 8
mov dword [ebx + 8], eax
test eax, eax
jne 0x4043dd
test edi, edi
jne 0x4045a6
mov ecx, dword [esp + 0x44]
push eax
push ecx
push edi
call fcn.00403f90
add esp, 0xc
test eax, eax
jne 0x4042d7
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x50]
push edi
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov eax, dword [ebx + 8]
call fcn.004047d0
add esp, 0x24
test eax, eax
jne 0x4042d7
jmp 0x404588
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x14], ecx
cmp edx, 4
jne 0x4044ee
mov eax, dword [esi + 0xc]
mov esi, dword [eax + ebp*8]
mov eax, dword [eax + ebp*8 + 4]
lea edi, [ebp*4]
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + edi + 0x54]
cmp ebp, 2
jae 0x4044c0
xor ecx, ecx
mov dword [esp + 0x14], esi
cmp esi, esi
jne 0x4045a6
cmp ecx, eax
jne 0x4045a6
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
push esi
push eax
call ecx
add esp, 8
test eax, eax
jne 0x4044a9
test esi, esi
jne 0x4045a6
mov edx, dword [esp + 0x84]
mov ecx, edi
neg ecx
mov dword [ecx + edx + 4], eax
mov edi, eax
mov dword [esp + ecx + 0x4c], esi
jmp 0x4044ee
jne 0x4045c0
xor edx, edx
cmp eax, edx
ja 0x4045b3
jb 0x4044da
cmp esi, ecx
ja 0x4045b3
mov edi, dword [esp + 0x78]
sub edi, esi
add edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x64]
mov eax, dword [esi + ebx*8 + 4]
mov ebp, dword [esi + ebx*8]
push ebx
mov dword [esp + 0x40], eax
call fcn.00404230
mov esi, dword [esp + 0x70]
add esp, 4
add eax, dword [esp + 0x70]
push 0
adc edx, dword [esp + 0x78]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0xc]
push esi
mov dword [esp + 0x3c], eax
call edx
add esp, 0xc
test eax, eax
jne 0x4042d7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
jne 0x40455d
cmp ebp, dword [esp + 0x14]
jne 0x4045cd
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jne 0x4045cd
push edi
push eax
push ebp
call fcn.00403f90
add esp, 0xc
jmp 0x40457c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0x88]
push ebp
push eax
mov edx, edi
mov ebx, esi
call fcn.00403e00
add esp, 0x10
test eax, eax
jne 0x4042d7
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x68]
mov edx, dword [esi + 0x10]
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, edx
jb 0x4042e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret