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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, dword [ecx + 8]
push esi
push edi
mov edi, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x64], edx
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x3c]
lea edi, [edi + edi*2]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x48], ecx
shl edi, 6
add edi, ebx
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x7c], eax
call fcn.00401ea0
mov edx, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x58], edx
xor edx, edx
mov dl, byte [eax + 6]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov cl, byte [eax + 0xe]
xor edx, edx
mov dl, byte [eax + 0x16]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x28]
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x24]
mov edx, dword [edx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], edx
sar ebx, 2
sar esi, 2
test eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x38], 0
jle 0x40309c
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x48]
push edx
mov edx, edi
call fcn.00437a90
mov ecx, dword [ebp + 0x14]
dec eax
mov edx, dword [esp + 0x38]
push ebp
neg eax
sbb eax, eax
push ecx
mov ecx, dword [esp + 0x50]
add eax, 2
push eax
add edx, edi
mov dword [esp + 0x6c], eax
call fcn.00401a60
mov eax, dword [ebp + 0x34]
imul eax, ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
add eax, edx
mov edx, dword [ebp + 0x40]
imul edx, esi
add edx, ecx
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x88]
mov ecx, dword [ecx]
lea esi, [esi + eax*4]
lea edi, [edi + edx*4]
lea ecx, [ecx*8 + 8]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0x88]
add eax, esi
mov ecx, dword [ecx]
mov esi, dword [esp + 0x1c]
lea edi, [edi + edx*4]
lea ecx, [ecx*8 + 8]
lea esi, [esi + eax*4]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
mov edi, dword [ebp + 4]
xor ecx, ecx
add edx, esi
cmp dword [edi + 4], ecx
jle 0x402cbc
mov edi, dword [esp + 0x88]
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x1c]
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
lea edi, [ebx*4]
add eax, edi
lea edi, [esi*4]
add edx, edi
mov edi, dword [ebp + 4]
inc ecx
cmp ecx, dword [edi + 4]
jl 0x402c97
mov eax, dword [ebp]
xor edx, edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x18], edx
lea eax, [eax + eax*2]
shl eax, 3
cmp dword [eax + 0x46518c], edx
jle 0x402e93
mov ecx, dword [ebp + 0x34]
mov edi, dword [esp + 0x10]
mov eax, dword [eax + 0x465188]
mov dword [esp + 0x14], 0
lea ecx, [ecx + edx + 2]
imul ecx, ebx
shl eax, 1
lea ecx, [ecx + edi + 2]
mov edi, dword [ebp + 0x40]
lea edx, [edi + edx + 2]
mov edi, dword [esp + 0x7c]
imul edx, esi
test eax, eax
lea edx, [edx + edi + 2]
jle 0x402e75
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
lea ecx, [ecx + esi*4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x40]
mov ebx, dword [ecx]
cmp ebx, 9
jne 0x402d5b
mov ecx, dword [esp + 0x68]
mov dword [edx], ecx
jmp 0x402e25
test ebx, ebx
jne 0x402d68
mov ecx, dword [eax]
mov dword [edx], ecx
jmp 0x402e25
mov esi, dword [eax]
mov ecx, dword [esp + 0x54]
mov edx, esi
mov edi, 9
and edx, ecx
mov ecx, dword [esp + 0x20]
shr edx, cl
sub edi, ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + ebx*4 + 0x98]
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 + 0x20]
mov eax, edx
mov edx, esi
shl eax, cl
mov ecx, dword [esp + 0x58]
and edx, ecx
mov ecx, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov eax, 0x38e38e39
imul edx, edi
add edx, dword [ecx + ebx*4 + 0x70]
mov ecx, dword [esp + 0x24]
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov edx, dword [esp + 0x6c]
shl eax, cl
mov ecx, dword [esp + 0x5c]
and esi, ecx
mov ecx, dword [esp + 0x2c]
shr esi, cl
mov ecx, dword [esp + 0x3c]
or edx, eax
mov eax, 0x38e38e39
mov dword [esp + 0x6c], edx
imul esi, edi
mov edi, dword [ecx + ebx*4 + 0x48]
mov ecx, dword [esp + 0x2c]
add esi, edi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x4c]
shl edx, cl
mov ecx, dword [esp + 0x6c]
or ecx, edx
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x40]
inc ecx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp]
add ebx, 4
add eax, 4
lea ecx, [ecx + ecx*2]
add edx, 4
inc esi
mov dword [esp + 0x40], ebx
mov ecx, dword [ecx*8 + 0x465188]
mov dword [esp + 0x4c], eax
shl ecx, 1
cmp esi, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], esi
jl 0x402d45
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebp]
mov edx, dword [esp + 0x18]
inc edx
lea eax, [eax + eax*2]
mov dword [esp + 0x18], edx
shl eax, 3
cmp edx, dword [eax + 0x46518c]
jl 0x402cde
mov ecx, dword [ebp]
xor edx, edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x18], edx
lea ecx, [ecx + ecx*2]
shl ecx, 3
cmp dword [ecx + 0x46518c], edx
jle 0x403046
mov eax, dword [ebp + 0x40]
mov ecx, dword [ecx + 0x465188]
add eax, edx
mov edi, dword [esp + 0x7c]
imul eax, esi
shl ecx, 1
add eax, edi
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x40302c
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x84]
lea eax, [edx + eax*4]
sub edx, edx
lea ecx, [ecx + esi*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx]
cmp ebx, 9
jne 0x402f17
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
jmp 0x402fdf
test ebx, ebx
je 0x402fdf
mov esi, dword [edx + eax]
mov ecx, dword [esp + 0x54]
mov edx, esi
mov edi, 9
and edx, ecx
mov ecx, dword [esp + 0x20]
shr edx, cl
sub edi, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebx*4 + 0x98]
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 + 0x20]
mov eax, edx
mov edx, esi
shl eax, cl
mov ecx, dword [esp + 0x58]
and edx, ecx
mov ecx, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
mov eax, 0x38e38e39
imul edx, edi
add edx, dword [ecx + ebx*4 + 0x70]
mov ecx, dword [esp + 0x24]
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov edx, dword [esp + 0x6c]
shl eax, cl
mov ecx, dword [esp + 0x5c]
and esi, ecx
mov ecx, dword [esp + 0x2c]
shr esi, cl
mov ecx, dword [esp + 0x28]
or edx, eax
mov eax, 0x38e38e39
mov dword [esp + 0x6c], edx
imul esi, edi
mov edi, dword [ecx + ebx*4 + 0x48]
mov ecx, dword [esp + 0x2c]
add esi, edi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
shl edx, cl
mov ecx, dword [esp + 0x6c]
or ecx, edx
mov edx, dword [esp + 0x40]
mov eax, edx
mov dword [edx], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + ecx*2]
inc ebx
add edi, 4
add eax, 4
mov ecx, dword [ecx*8 + 0x465188]
inc esi
shl ecx, 1
cmp esi, ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], esi
jl 0x402f01
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
inc edx
mov dword [esp + 0x18], edx
lea ecx, [ecx + ecx*2]
shl ecx, 3
cmp edx, dword [ecx + 0x46518c]
jl 0x402eb5
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x60]
cmp eax, 0xffffffff
jne 0x40306b
cmp ecx, 2
jne 0x403063
mov edx, dword [ebp + 4]
mov eax, dword [edx + 8]
jmp 0x403072
mov eax, dword [ebp + 4]
mov eax, dword [eax + 8]
jmp 0x403070
cmp ecx, 2
je 0x403072
sar eax, 1
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
add edi, eax
add edx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edi
add eax, ecx
mov ecx, dword [esp + 0x78]
cmp eax, ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x38], eax
jl 0x402bc1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x14