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

Disassembly:
sub esp, 0x74
push ebx
push esi
mov ebx, dword [esp + 0x88]
push edi
push ebp
test ebx, ebx
je 0x40c967
mov eax, dword [esp + 0x94]
test eax, eax
jl 0x40c967
cmp eax, 5
jge 0x40c967
mov eax, dword [esp + 0x98]
test eax, eax
jl 0x40c967
cmp eax, 3
jge 0x40c967
mov eax, dword [esp + 0x94]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [eax*4 + 0x432050]
cmp ecx, esi
jne 0x40c4a2
mov eax, dword [ebx + 0x20]
cmp eax, esi
je 0x40c4b1
mov eax, dword [0x432004]
mov ecx, ebx
push eax
push esi
push esi
call fcn.0040f6f0
mov eax, dword [ebx + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40c967
lea eax, [esp + 0x38]
mov ecx, 0x52d058
push eax
call fcn.00415b80
test eax, eax
je 0x40c967
mov eax, 0xffffffff
mov ecx, dword [0x5284b8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x40c630
mov eax, dword [0x529778]
cmp eax, 0x2e
jle 0x40c51e
mov eax, dword [0x529770]
test eax, eax
je 0x40c51e
add eax, 0x1a310
jmp 0x40c523
mov eax, 0x528e20
mov ecx, dword [eax + 0x4c]
cmp ecx, 1
jle 0x40c532
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x40c534
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40c630
mov eax, dword [0x529778]
cmp eax, 0x2e
jle 0x40c559
mov eax, dword [0x529770]
test eax, eax
nop
lea ecx, [eax + 0x1a310]
jne 0x40c55e
mov ecx, 0x528e20
mov eax, dword [ecx + 0x4c]
cmp eax, 1
jle 0x40c56d
mov eax, dword [ecx + 0x48]
test eax, eax
jne 0x40c56f
mov eax, ecx
mov eax, dword [eax + 0x18]
mov ecx, dword [0x529778]
mov dword [esp + 0x48], eax
cmp ecx, 0x2e
jle 0x40c591
mov eax, dword [0x529770]
test eax, eax
nop
lea ecx, [eax + 0x1a310]
jne 0x40c596
mov ecx, 0x528e20
mov eax, dword [ecx + 0x4c]
cmp eax, 1
jle 0x40c5a5
mov eax, dword [ecx + 0x48]
test eax, eax
jne 0x40c5a7
mov eax, ecx
mov eax, dword [eax + 0x1c]
mov ecx, dword [0x529778]
mov dword [esp + 0x3c], eax
cmp ecx, 0x2e
jle 0x40c5c9
mov eax, dword [0x529770]
test eax, eax
je 0x40c5c9
add eax, 0x1a310
jmp 0x40c5ce
mov eax, 0x528e20
mov ecx, dword [eax + 0x4c]
cmp ecx, 1
jle 0x40c5df
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x40c5df
mov eax, ecx
mov eax, dword [eax + 0x20]
mov ecx, dword [0x529778]
mov dword [esp + 0x40], eax
cmp ecx, 0x2e
jle 0x40c601
mov eax, dword [0x529770]
test eax, eax
je 0x40c601
add eax, 0x1a310
jmp 0x40c606
mov eax, 0x528e20
mov ecx, dword [eax + 0x4c]
cmp ecx, 1
jle 0x40c617
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x40c617
mov eax, ecx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x34], eax
mov eax, esi
lea edi, [esp + 0x4c]
mov esi, 0x52aea8
mov ecx, 0xd
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x8c]
mov al, byte [0x43b208]
mov byte [esp + 0x10], al
call fcn.00425004
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
sub eax, ecx
test eax, eax
jg 0x40c670
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp ebp, eax
jg 0x40c95d
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
lea eax, [eax + eax*4]
add eax, ecx
mov ecx, eax
shl eax, 5
add eax, ecx
shl eax, 7
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x18]
fld dword [esp + 0x88]
lea edx, [ecx*4 + 0x43e0e8]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x80], ecx
call fcn.00425004
mov ecx, eax
mov edx, dword [esp + 0x14]
sub ecx, edx
test ecx, ecx
jg 0x40c6e0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
add edx, eax
cmp edx, ecx
jl 0x40c925
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov cl, byte [esi + 0xb]
test ecx, ecx
jle 0x40c903
mov ebp, 0xff
sub ebp, ecx
mov cl, byte [esp + 0x10]
test cl, cl
je 0x40c847
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
add ecx, edx
mov ebx, dword [esp + 0x30]
and ecx, ebx
mov edx, dword [esp + 0x18]
mov ebx, dword [esi + 4]
add ebx, edx
mov edx, dword [esp + 0x34]
and ebx, edx
test ecx, ecx
jl 0x40c7b0
mov edx, dword [esp + 0x3c]
cmp edx, ecx
jle 0x40c7b0
test ebx, ebx
jl 0x40c7b0
mov edx, dword [esp + 0x40]
cmp edx, ebx
jle 0x40c7b0
mov edx, dword [esp + 0x44]
imul edx, ebx
xor ebx, ebx
nop
lea edx, [edx + ecx*2]
mov ecx, dword [esp + 0x48]
mov bx, word [edx + ecx]
mov edx, dword [esp + 0x50]
and edx, ebx
mov cl, byte [esp + 0x58]
shr edx, cl
mov cl, byte [esp + 0x5c]
shl dl, cl
mov cl, byte [esp + 0x68]
mov byte [esp + 0x11], dl
mov edx, dword [esp + 0x60]
and edx, ebx
shr edx, cl
mov cl, byte [esp + 0x6c]
shl dl, cl
mov cl, byte [esp + 0x78]
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x70]
and edx, ebx
shr edx, cl
mov cl, byte [esp + 0x7c]
shl dl, cl
mov byte [esp + 0x12], dl
jmp 0x40c7c1
mov ecx, 0x32
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x11], cl
xor edx, edx
xor ecx, ecx
mov dl, byte [esi + 8]
mov cl, byte [esp + 0x11]
sub edx, ecx
xor ebx, ebx
imul edx, ebp
sar edx, 8
mov bl, byte [esi + 0xa]
add dl, cl
mov cl, byte [esp + 0x5c]
shr dl, cl
and edx, 0xffff00ff
mov cl, byte [esp + 0x58]
shl dx, cl
xor ecx, ecx
mov cl, byte [esp + 0x12]
sub ebx, ecx
imul ebx, ebp
sar ebx, 8
add bl, cl
mov cl, byte [esp + 0x7c]
shr bl, cl
and ebx, 0xffff00ff
mov cl, byte [esp + 0x78]
shl bx, cl
or dx, bx
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esp + 0x13]
mov bl, byte [esi + 9]
sub ebx, ecx
imul ebx, ebp
sar ebx, 8
add bl, cl
mov cl, byte [esp + 0x6c]
shr bl, cl
and ebx, 0xffff00ff
mov cl, byte [esp + 0x68]
shl bx, cl
or dx, bx
mov word [edi], dx
jmp 0x40c908
mov ecx, dword [0x43b20c]
test ecx, ecx
jne 0x40c8b6
xor edx, edx
mov cl, byte [esp + 0x5c]
mov dl, byte [esi + 8]
xor ebx, ebx
imul edx, ebp
sar edx, 8
mov bl, byte [esi + 0xa]
shr dl, cl
and edx, 0xffff00ff
mov cl, byte [esp + 0x58]
shl dx, cl
imul ebx, ebp
sar ebx, 8
mov cl, byte [esp + 0x7c]
shr bl, cl
and ebx, 0xffff00ff
mov cl, byte [esp + 0x78]
shl bx, cl
or dx, bx
mov cl, byte [esp + 0x6c]
xor ebx, ebx
mov bl, byte [esi + 9]
imul ebx, ebp
sar ebx, 8
shr bl, cl
and ebx, 0xffff00ff
mov cl, byte [esp + 0x68]
shl bx, cl
or dx, bx
mov word [edi], dx
jmp 0x40c908
mov dl, byte [esi + 8]
mov cl, byte [esp + 0x5c]
shr dl, cl
and edx, 0xffff00ff
mov cl, byte [esp + 0x58]
shl dx, cl
mov bl, byte [esi + 0xa]
mov cl, byte [esp + 0x7c]
shr bl, cl
and ebx, 0xffff00ff
mov cl, byte [esp + 0x78]
shl bx, cl
or dx, bx
mov cl, byte [esp + 0x6c]
mov bl, byte [esi + 9]
shr bl, cl
and ebx, 0xffff00ff
mov cl, byte [esp + 0x68]
shl bx, cl
or dx, bx
mov word [edi], dx
jmp 0x40c908
mov word [edi], 0
add esi, 0xc
add edi, 2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc ecx
add edx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, edx
jle 0x40c702
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
add ecx, 0x30c
mov ebx, dword [esp + 0x24]
add ebx, edx
mov ebp, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
add ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
cmp ebp, ecx
jle 0x40c6e4
mov ecx, 0x52d058
call fcn.00415ce0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret