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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x24], edx
mov ebx, ecx
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x30]
mov ebp, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x2c]
mov ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], eax
call fcn.00401ea0
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 6]
mov cl, byte [eax + 0xe]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x78]
xor edx, edx
mov dl, byte [eax + 0x16]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x7c]
mov ecx, dword [ecx + 0x24]
sar eax, 2
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x48], ecx
sar eax, 2
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x7c], 0
jle 0x404918
push edi
jmp 0x4046c1
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00437a90
mov ecx, dword [esi + 0x14]
mov edi, eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
dec edi
push esi
neg edi
sbb edi, edi
push ecx
add edi, 2
add edx, eax
push edi
mov ecx, ebx
mov dword [esp + 0x74], edi
call fcn.00401a60
mov edx, dword [esi]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
lea edx, [edx + edx*2]
shl edx, 3
cmp dword [edx + 0x46518c], ebx
jle 0x4048c2
jmp 0x404720
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov edx, dword [edx + 0x465188]
imul eax, dword [esp + 0x40]
add eax, ecx
mov ecx, dword [esi + 0x40]
add ecx, ebx
mov ebx, dword [esp + 0x14]
imul ecx, dword [esp + 0x44]
shl edx, 1
add ecx, ebx
mov dword [esp + 0x38], 0
test edx, edx
jle 0x4048a5
mov edx, dword [esp + 0x48]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x50]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [ecx + edx*4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
cmp ebx, 9
jne 0x404797
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
mov dword [eax], edx
jmp 0x40485a
test ebx, ebx
je 0x40485a
mov ecx, dword [esp + 0x20]
mov edi, 9
sub edi, ebx
mov eax, 0x38e38e39
mov esi, dword [ecx]
mov ecx, dword [esp + 0x58]
mov edx, esi
and edx, ecx
mov ecx, dword [esp + 0x2c]
shr edx, cl
mov ecx, dword [ebp + ebx*4 + 0x98]
imul edx, edi
add edx, ecx
mov ecx, dword [esp + 0x2c]
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov edx, esi
shl eax, cl
mov ecx, dword [esp + 0x5c]
and edx, ecx
mov ecx, dword [esp + 0x30]
shr edx, cl
mov ecx, dword [ebp + ebx*4 + 0x70]
mov dword [esp + 0x60], eax
mov eax, 0x38e38e39
imul edx, edi
add edx, ecx
imul edx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x30]
mov eax, edx
mov edx, dword [esp + 0x60]
shl eax, cl
mov ecx, dword [esp + 0x64]
and esi, ecx
mov ecx, dword [esp + 0x34]
shr esi, cl
mov ecx, dword [ebp + ebx*4 + 0x48]
or edx, eax
mov eax, 0x38e38e39
mov dword [esp + 0x60], edx
imul esi, edi
add esi, ecx
mov ecx, dword [esp + 0x34]
imul esi
sar edx, 1
mov eax, edx
mov esi, dword [esp + 0x74]
shr eax, 0x1f
add edx, eax
mov edi, dword [esp + 0x68]
shl edx, cl
mov ecx, dword [esp + 0x60]
or ecx, edx
mov edx, dword [esp + 0x7c]
mov dword [edx], ecx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
inc eax
mov dword [esp + 0x18], eax
mov eax, 4
add ebx, eax
add edx, eax
add ecx, eax
mov eax, dword [esi]
mov dword [esp + 0x20], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [eax + eax*2]
inc ecx
mov dword [esp + 0x1c], ebx
mov edx, dword [eax*8 + 0x465188]
mov dword [esp + 0x38], ecx
shl edx, 1
cmp ecx, edx
jl 0x40477d
mov edx, dword [esi]
mov eax, dword [esp + 0x24]
inc eax
lea edx, [edx + edx*2]
mov dword [esp + 0x24], eax
shl edx, 3
cmp eax, dword [edx + 0x46518c]
jl 0x40471c
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
jne 0x4048e0
cmp edi, 2
jne 0x4048d8
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
jmp 0x4048e7
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
jmp 0x4048e5
cmp edi, 2
je 0x4048e7
sar eax, 1
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x70]
add eax, edi
cmp eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x80], eax
jl 0x4046bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14