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

Disassembly:
push 0xffffffffffffffff
push 0x4913c8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4af5e0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4af5e0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
mov ebx, ecx
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebx
cmp dword [ebx + 0xc], esi
jbe 0x40483a
call fcn.0045f2db
mov edi, dword [ebx + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x44], ecx
cmp edi, dword [ebx + 0x10]
jbe 0x40484d
call fcn.0045f2db
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
push esi
mov esi, dword [esp + 0x38]
push edx
push edi
push eax
lea ebx, [esp + 0x54]
call fcn.0040b240
mov eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
xor edi, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
cmp eax, edi
je 0x404b49
cmp ecx, edi
je 0x404b49
lea eax, [esp + 0x1c]
push eax
call fcn.00409fb0
mov dword [esp + 0x98], edi
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 0x14]
lea ebx, [ebp + 4]
jb 0x4048a9
mov eax, dword [ebx]
jmp 0x4048ab
mov eax, ebx
push ecx
push eax
push esi
xor eax, eax
call fcn.0040ac20
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 0xffffffff
jne 0x4048e1
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
push ecx
call fcn.0040a180
lea esi, [esp + 0x1c]
call fcn.0040aa60
mov eax, 1
jmp 0x404b4b
mov dword [esp + 0x38], 0
cmp esi, edi
jb 0x40497b
mov edx, dword [esp + 0x28]
inc dword [esp + 0x38]
test edx, edx
jne 0x404901
xor ecx, ecx
jmp 0x40490a
mov ecx, dword [esp + 0x30]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x2c]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x404924
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x2c], eax
jmp 0x404948
mov edi, eax
cmp edx, eax
jbe 0x40492f
call fcn.0045f2db
mov eax, dword [esp + 0x1c]
push edi
push eax
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x2c]
call fcn.0040c0e0
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 0x14]
mov edi, esi
jb 0x404957
mov ecx, dword [ebx]
jmp 0x404959
mov ecx, ebx
mov edx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [edx + esi]
push ecx
call fcn.0040ac20
mov esi, eax
mov dword [esp + 0x40], esi
cmp esi, 0xffffffff
jne 0x4048e9
mov eax, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov byte [esp + 0x98], 1
test ebp, ebp
jne 0x404a0a
sub eax, dword [esp + 0x28]
sar eax, 2
test eax, eax
ja 0x4049b8
call fcn.0045f2db
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00409e20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 2
call fcn.00403110
mov byte [esp + 0x98], 1
cmp dword [esp + 0x64], 0x10
jb 0x404ac2
mov edx, dword [esp + 0x50]
push edx
call fcn.0045f0f8
add esp, 4
jmp 0x404ac2
mov ecx, eax
sub ecx, dword [esp + 0x28]
lea esi, [ebp - 1]
sar ecx, 2
cmp esi, ecx
jb 0x404a23
call fcn.0045f2db
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov edi, dword [edx + esi*4]
add edi, dword [esp + 0x3c]
cmp edi, dword [esp + 0x44]
jae 0x404ac6
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ebp, ecx
jne 0x404a5e
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x54]
push edx
call fcn.00409e20
mov byte [esp + 0x98], 3
jmp 0x404aa3
jb 0x404a69
call fcn.0045f2db
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, ecx
sar eax, 2
lea ebx, [ecx + ebp*4]
cmp esi, eax
jb 0x404a7e
call fcn.0045f2db
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx]
sub eax, dword [ecx + esi*4]
mov ecx, dword [esp + 0x18]
sub eax, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
push eax
push edi
push edx
call fcn.00409e20
mov byte [esp + 0x98], 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x7c]
call fcn.00403110
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 1
call fcn.004035e0
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x84], 0
jbe 0x404ae2
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x70]
push eax
call fcn.0040a180
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x98], 0
cmp dword [esp + 0x88], 0x10
jb 0x404b05
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0045f0f8
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, eax
sub edx, ecx
inc ebp
sar edx, 2
cmp ebp, edx
jbe 0x404981
xor eax, eax
cmp ecx, eax
je 0x404b2a
push ecx
call fcn.0045f0f8
add esp, 4
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0045f0f8
mov eax, dword [esp + 0x3c]
add esp, 4
jmp 0x404b4b
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0045fa9a
add esp, 0x88
ret