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

Disassembly:
sub esp, 0x64
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
xor edi, edi
xor ebp, ebp
cmp esi, edi
jne 0x404d0e
pop edi
pop esi
mov eax, 0xffffff9a
pop ebp
add esp, 0x64
ret
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x30]
push ebx
mov ebx, dword [esi + 0x4c]
add eax, ecx
mov ecx, dword [esi + 0x5c]
push edi
adc ecx, ebx
push ecx
push eax
push edx
push esi
call fcn.00401260
add esp, 0x14
test eax, eax
je 0x404d38
or ebp, 0xffffffff
jmp 0x404d62
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x404d53
or ebp, 0xffffffff
jmp 0x404d62
cmp dword [esp + 0x10], 0x2014b50
je 0x404d62
mov ebp, 0xffffff99
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404d7b
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404d94
or ebp, 0xffffffff
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404dad
or ebp, 0xffffffff
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404dc6
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x404ddf
or ebp, 0xffffffff
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x5c]
push eax
push edi
push ecx
call fcn.00405220
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
call fcn.004044f0
add esp, 0x18
test eax, eax
je 0x404e08
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x78]
push ecx
push edx
push esi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x404e21
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], eax
push ecx
push edx
push esi
mov dword [esp + 0x44], edi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x404e46
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], eax
push ecx
push edx
push esi
mov dword [esp + 0x4c], edi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404e6b
or ebp, 0xffffffff
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x48]
push eax
push ecx
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404e84
or ebp, 0xffffffff
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x4c]
push edx
push eax
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404e9d
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x50]
push ecx
push edx
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404eb6
or ebp, 0xffffffff
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x54]
push eax
push ecx
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x404ecf
or ebp, 0xffffffff
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x58]
push edx
push eax
push esi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x404ee8
or ebp, 0xffffffff
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x78]
push ecx
push edx
push esi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x404f01
or ebp, 0xffffffff
mov eax, dword [esp + 0x78]
cmp ebp, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edi
mov ebx, eax
jne 0x404fec
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x404f68
mov edx, dword [esp + 0x88]
cmp eax, edx
jae 0x404f3d
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x44]
mov edi, eax
jmp 0x404f3f
mov edi, edx
test eax, eax
jbe 0x404f5e
test edx, edx
jbe 0x404f5e
mov edx, dword [esi + 0x1c]
push edi
push ecx
mov ecx, dword [esi + 0x30]
push ecx
push edx
call dword [esi + 4]
add esp, 0x10
cmp eax, edi
je 0x404f5e
or ebp, 0xffffffff
sub ebx, edi
test ebp, ebp
jne 0x404fec
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x404fec
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x90]
cmp edi, eax
jb 0x404f84
mov edi, eax
test ebx, ebx
je 0x404fa7
mov eax, ebx
push 1
cdq
push edx
push eax
mov eax, dword [esi + 0x30]
push eax
push esi
call fcn.00401260
add esp, 0x14
test eax, eax
jne 0x404fa4
xor ebx, ebx
jmp 0x404fa7
or ebp, 0xffffffff
mov eax, dword [esp + 0x48]
test eax, eax
jbe 0x404fe0
mov eax, dword [esp + 0x90]
test eax, eax
jbe 0x404fe0
mov ecx, dword [esp + 0x8c]
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x1c]
push edi
push ecx
push edx
push eax
call dword [esi + 4]
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x404fdd
xor eax, eax
cmp ecx, eax
je 0x404fe0
or ebp, 0xffffffff
mov eax, dword [esp + 0x48]
mov ecx, eax
sub ecx, edi
add ebx, ecx
jmp 0x404ff2
mov eax, dword [esp + 0x48]
add ebx, eax
test ebp, ebp
mov dword [esp + 0x90], ebx
jne 0x405210
test eax, eax
je 0x405167
xor edi, edi
sub ebx, eax
mov dword [esp + 0x90], ebx
je 0x405039
mov eax, ebx
push 1
cdq
push edx
mov edx, dword [esi + 0x30]
push eax
push edx
push esi
call fcn.00401260
add esp, 0x14
test eax, eax
jne 0x40511f
mov dword [esp + 0x90], eax
or ebx, 0xffffffff
mov eax, dword [esp + 0x48]
test eax, eax
jbe 0x40515f
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x84]
push eax
push ecx
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x405063
mov ebp, ebx
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x8c]
push edx
push eax
push esi
call fcn.00404430
add esp, 0xc
test eax, eax
je 0x40507e
mov ebp, ebx
cmp dword [esp + 0x84], 1
jne 0x405129
cmp dword [esp + 0x3c], ebx
jne 0x4050b2
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4050b2
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
call fcn.00404590
add esp, 0xc
test eax, eax
je 0x4050b2
mov ebp, ebx
cmp dword [esp + 0x34], ebx
jne 0x4050d8
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4050d8
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x34]
push eax
push ecx
push esi
call fcn.00404590
add esp, 0xc
test eax, eax
je 0x4050d8
mov ebp, ebx
cmp dword [esp + 0x14], ebx
jne 0x4050fe
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4050fe
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x14]
push edx
push eax
push esi
call fcn.00404590
add esp, 0xc
test eax, eax
je 0x4050fe
mov ebp, ebx
cmp dword [esp + 0x50], ebx
jne 0x405148
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x88]
push ecx
push edx
push esi
call fcn.004044f0
add esp, 0xc
test eax, eax
je 0x405148
jmp 0x405146
or ebx, 0xffffffff
mov ebp, ebx
jmp 0x40503c
mov eax, dword [esp + 0x8c]
mov ecx, dword [esi + 0x30]
push 1
push 0
push eax
push ecx
push esi
call fcn.00401260
add esp, 0x14
test eax, eax
je 0x405148
mov ebp, ebx
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x48]
lea edi, [edi + edx + 4]
cmp edi, eax
jb 0x405048
test ebp, ebp
jne 0x405210
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x4051e5
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x98]
cmp eax, edi
jae 0x405189
mov byte [eax + ebx], 0
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4051ad
cdq
push 1
push edx
push eax
mov eax, dword [esi + 0x30]
push eax
push esi
call fcn.00401260
add esp, 0x14
test eax, eax
je 0x4051ad
or ebp, 0xffffffff
mov eax, dword [esp + 0x4c]
test eax, eax
jbe 0x4051e1
mov eax, dword [esp + 0x98]
test eax, eax
jbe 0x4051e1
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x1c]
push edi
push ebx
push ecx
push edx
call dword [esi + 4]
add esp, 0x10
cmp eax, edi
je 0x4051e1
or ebp, 0xffffffff
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x64
ret
test ebp, ebp
jne 0x405210
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4051f8
mov ecx, 0x16
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x405210
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x64
ret