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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
mov eax, dword [esi]
and eax, 0x10000001
mov dword [ebp - 0x240], ecx
cmp eax, 0x10000001
je 0x4010fc
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a567
mov esp, ebp
pop ebp
ret
fld dword [ecx + 0x28]
mov edx, dword [ecx + 8]
mov eax, dword [esi + 0xa50]
fstp dword [ebp - 0x248]
fld dword [ecx + 0x1c]
push ebx
mov ebx, dword [ecx]
fstp dword [ebp - 0x230]
mov dword [esi + 0xa24], edx
mov edx, dword [ebx]
push edi
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x22c], edx
cmp edx, eax
jle 0x40113b
mov dword [ebp - 0x22c], eax
mov edx, eax
cmp dword [ecx + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x244], eax
je 0x40123e
fld dword [ebp - 0x230]
xor edi, edi
cmp edx, 4
jl 0x4011f7
add edx, 0xfffffffc
shr edx, 2
xor ecx, ecx
inc edx
lea eax, [esi + 0x328]
lea edi, [edx*4]
mov ebx, dword [esi + 0xa24]
fld dword [ebx + ecx]
add ecx, 0x3d0
fsub dword [eax - 0x104]
add eax, 0x400
dec edx
fmul st(1)
fstp dword [eax - 0x500]
mov ebx, dword [esi + 0xa24]
fld dword [ebx + ecx - 0x2dc]
fsub dword [eax - 0x404]
fmul st(1)
fstp dword [eax - 0x400]
mov ebx, dword [esi + 0xa24]
fld dword [ebx + ecx - 0x1e8]
fsub dword [eax - 0x304]
fmul st(1)
fstp dword [eax - 0x300]
mov ebx, dword [esi + 0xa24]
fld dword [ebx + ecx - 0xf4]
fsub dword [eax - 0x204]
fmul st(1)
fstp dword [eax - 0x200]
jne 0x401175
mov ebx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
cmp edi, edx
jge 0x40123c
mov eax, edi
mov ecx, edi
shl eax, 8
imul ecx, ecx, 0xf4
lea eax, [eax + esi + 0x224]
sub edx, edi
mov edi, dword [esi + 0xa24]
fld dword [edi + ecx]
add eax, 0x100
fsub dword [eax - 0x100]
add ecx, 0xf4
dec edx
fmul st(1)
fstp dword [eax - 0xfc]
jne 0x401211
mov edx, dword [ebp - 0x22c]
fstp st(0)
mov ecx, dword [ebp - 0x240]
fldz
cmp dword [ecx + 0x14], 0
jne 0x40133e
xor eax, eax
cmp edx, 4
jl 0x4012fb
lea ebx, [edx - 4]
shr ebx, 2
xor ecx, ecx
inc ebx
lea edx, [ebx*4]
lea eax, [esi + 0x328]
mov dword [ebp - 0x230], edx
mov edx, dword [esi + 0xa24]
fst dword [eax - 0x100]
fld dword [edx + ecx]
add eax, 0x400
fstp dword [eax - 0x504]
mov edx, dword [esi + 0xa24]
lea edx, [edx + ecx + 0xf4]
fst dword [eax - 0x400]
fld dword [edx]
fstp dword [eax - 0x404]
mov edx, dword [esi + 0xa24]
lea edx, [edx + ecx + 0x1e8]
fst dword [eax - 0x300]
add ecx, 0x3d0
dec ebx
fld dword [edx]
fstp dword [eax - 0x304]
mov edx, dword [esi + 0xa24]
fst dword [eax - 0x200]
fld dword [edx + ecx - 0xf4]
fstp dword [eax - 0x204]
jne 0x401277
mov ebx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
cmp eax, edx
jge 0x40133e
mov edi, dword [ebp - 0x22c]
mov ecx, eax
mov edx, eax
shl ecx, 8
imul edx, edx, 0xf4
lea ecx, [ecx + esi + 0x224]
sub edi, eax
mov eax, dword [esi + 0xa24]
fst dword [ecx + 4]
fld dword [eax + edx]
add edx, 0xf4
fstp dword [ecx]
add ecx, 0x100
dec edi
jne 0x40131b
mov edx, dword [ebp - 0x22c]
xor eax, eax
cmp edx, 4
jl 0x4013ae
add edx, 0xfffffffd
lea ecx, [esi + 0x320]
fld dword [ecx - 4]
add eax, 4
fstp dword [ebp + eax*4 - 0x54]
add ecx, 0x400
fld dword [ecx - 0x400]
fstp dword [ebp + eax*4 - 0x34]
fld dword [ecx - 0x304]
fstp dword [ebp + eax*4 - 0x50]
fld dword [ecx - 0x300]
fstp dword [ebp + eax*4 - 0x30]
fld dword [ecx - 0x204]
fstp dword [ebp + eax*4 - 0x4c]
fld dword [ecx - 0x200]
fstp dword [ebp + eax*4 - 0x2c]
fld dword [ecx - 0x104]
fstp dword [ebp + eax*4 - 0x48]
fld dword [ecx - 0x100]
fstp dword [ebp + eax*4 - 0x28]
cmp eax, edx
jl 0x40134e
mov edx, dword [ebp - 0x22c]
cmp eax, edx
jge 0x4013da
mov ecx, eax
shl ecx, 8
lea ecx, [ecx + esi + 0x320]
fld dword [ecx - 4]
inc eax
fstp dword [ebp + eax*4 - 0x48]
add ecx, 0x100
fld dword [ecx - 0x100]
fstp dword [ebp + eax*4 - 0x28]
cmp eax, edx
jl 0x4013be
xor edi, edi
cmp edx, edi
jle 0x401840
add ebx, 8
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x238], edi
lea ebx, [esi + 0x224]
mov ecx, dword [esi + 0xa24]
add ecx, dword [ebp - 0x238]
lea edx, [ebx + 0x44]
add ecx, 0x40
xor eax, eax
fld dword [ecx - 0x3c]
add eax, 0x14
fstp dword [ebp + eax - 0x1c0]
fld dword [ecx]
fstp dword [ebp + eax - 0x184]
fld dword [ecx + 0x3c]
fstp dword [ebp + eax - 0x238]
fld dword [ecx + 0x78]
fstp dword [ebp + eax - 0x1fc]
fld dword [edx - 0x3c]
fstp dword [ebp + eax - 0xd0]
fld dword [edx]
fstp dword [ebp + eax - 0x10c]
fld dword [edx + 0x3c]
fstp dword [ebp + eax - 0x94]
fld dword [edx + 0x78]
fstp dword [ebp + eax - 0x148]
fld dword [ecx - 0x38]
fstp dword [ebp + eax - 0x1bc]
fld dword [ecx + 4]
fstp dword [ebp + eax - 0x180]
fld dword [ecx + 0x40]
fstp dword [ebp + eax - 0x234]
fld dword [ecx + 0x7c]
fstp dword [ebp + eax - 0x1f8]
fld dword [edx - 0x38]
fstp dword [ebp + eax - 0xcc]
fld dword [edx + 4]
fstp dword [ebp + eax - 0x108]
fld dword [edx + 0x40]
fstp dword [ebp + eax - 0x90]
fld dword [edx + 0x7c]
fstp dword [ebp + eax - 0x144]
fld dword [ecx - 0x34]
fstp dword [ebp + eax - 0x1b8]
fld dword [ecx + 8]
fstp dword [ebp + eax - 0x17c]
fld dword [ecx + 0x44]
fstp dword [ebp + eax - 0x230]
fld dword [ecx + 0x80]
fstp dword [ebp + eax - 0x1f4]
fld dword [edx - 0x34]
fstp dword [ebp + eax - 0xc8]
fld dword [edx + 8]
fstp dword [ebp + eax - 0x104]
fld dword [edx + 0x44]
fstp dword [ebp + eax - 0x8c]
fld dword [edx + 0x80]
fstp dword [ebp + eax - 0x140]
fld dword [ecx - 0x30]
fstp dword [ebp + eax - 0x1b4]
fld dword [ecx + 0xc]
fstp dword [ebp + eax - 0x178]
fld dword [ecx + 0x48]
fstp dword [ebp + eax - 0x22c]
fld dword [ecx + 0x84]
fstp dword [ebp + eax - 0x1f0]
fld dword [edx - 0x30]
fstp dword [ebp + eax - 0xc4]
fld dword [edx + 0xc]
fstp dword [ebp + eax - 0x100]
fld dword [edx + 0x48]
fstp dword [ebp + eax - 0x88]
fld dword [edx + 0x84]
fstp dword [ebp + eax - 0x13c]
fld dword [ecx - 0x2c]
fstp dword [ebp + eax - 0x1b0]
fld dword [ecx + 0x10]
fstp dword [ebp + eax - 0x174]
fld dword [ecx + 0x4c]
fstp dword [ebp + eax - 0x228]
fld dword [ecx + 0x88]
fstp dword [ebp + eax - 0x1ec]
fld dword [edx - 0x2c]
fstp dword [ebp + eax - 0xc0]
fld dword [edx + 0x10]
fstp dword [ebp + eax - 0xfc]
fld dword [edx + 0x4c]
fstp dword [ebp + eax - 0x84]
fld dword [edx + 0x88]
fstp dword [ebp + eax - 0x138]
add ecx, 0x14
add edx, 0x14
cmp eax, 0x3c
jl 0x40140d
fld dword [ebx]
mov eax, dword [ebp - 0x244]
mov edx, dword [ebp - 0x234]
fstp dword [ebp - 0x23c]
fld dword [ebx + 4]
mov ecx, dword [edx]
fstp dword [ebp - 0x228]
test eax, eax
jle 0x401732
fld dword [ebp - 0x228]
mov dword [ebp - 0x230], eax
fld dword [ecx]
fstp dword [ebp - 0x228]
fld dword [ebp - 0x228]
fst dword [ebp - 0x228]
and dword [ebp - 0x228], 0x7fffffff
fld dword [ebp - 0x228]
fld dword [ebp + edi*4 - 0x44]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40162b
fstp dword [ebp + edi*4 - 0x44]
xor eax, eax
jmp 0x401639
fstp st(0)
xor eax, eax
jmp 0x401639
fstp st(0)
fld dword [ebp - 0x228]
fld dword [ebp + eax - 0xbc]
fsub dword [ebp + eax - 0x80]
fmul dword [ebp + eax - 0x170]
fld dword [ebp + eax - 0x1ac]
fmul st(2)
faddp st(1)
fld dword [ebp + eax - 0x224]
fmul dword [ebp + eax - 0xf8]
faddp st(1)
fld dword [ebp + eax - 0x1e8]
fmul dword [ebp + eax - 0x134]
faddp st(1)
fstp dword [ebp - 0x228]
mov edx, dword [ebp - 0x228]
fld dword [ebp + eax - 0xbc]
and edx, 0x7f800000
fstp dword [ebp + eax - 0xf8]
fstp dword [ebp + eax - 0xbc]
cmp edx, 0x1f800000
jge 0x4016af
fxch st(1)
fst dword [ebp - 0x228]
fxch st(1)
fld dword [ebp + eax - 0x80]
add eax, 4
fstp dword [ebp + eax - 0x138]
fld dword [ebp - 0x228]
fst dword [ebp + eax - 0x84]
fst dword [ebp - 0x228]
cmp eax, 0x3c
jl 0x401631
fld dword [ebp - 0x23c]
add ecx, 4
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [ebp - 0x228]
fld dword [ebp - 0x228]
and dword [ebp - 0x228], 0x7fffffff
fstp dword [ecx - 4]
fld dword [ebp - 0x228]
fld dword [ebp + edi*4 - 0x24]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40171a
fstp dword [ebp + edi*4 - 0x24]
jmp 0x40171c
fstp st(0)
dec dword [ebp - 0x230]
fadd st(1)
fstp dword [ebp - 0x23c]
jne 0x4015f2
fstp st(0)
lea ecx, [ebx + 0x44]
xor eax, eax
fld dword [ebp + eax - 0xbc]
add eax, 0x14
fstp dword [ecx - 0x3c]
add ecx, 0x14
fld dword [ebp + eax - 0x10c]
fstp dword [ecx - 0x14]
fld dword [ebp + eax - 0x94]
fstp dword [ecx + 0x28]
fld dword [ebp + eax - 0x148]
fstp dword [ecx + 0x64]
fld dword [ebp + eax - 0xcc]
fstp dword [ecx - 0x4c]
fld dword [ebp + eax - 0x108]
fstp dword [ecx - 0x10]
fld dword [ebp + eax - 0x90]
fstp dword [ecx + 0x2c]
fld dword [ebp + eax - 0x144]
fstp dword [ecx + 0x68]
fld dword [ebp + eax - 0xc8]
fstp dword [ecx - 0x48]
fld dword [ebp + eax - 0x104]
fstp dword [ecx - 0xc]
fld dword [ebp + eax - 0x8c]
fstp dword [ecx + 0x30]
fld dword [ebp + eax - 0x140]
fstp dword [ecx + 0x6c]
fld dword [ebp + eax - 0xc4]
fstp dword [ecx - 0x44]
fld dword [ebp + eax - 0x100]
fstp dword [ecx - 8]
fld dword [ebp + eax - 0x88]
fstp dword [ecx + 0x34]
fld dword [ebp + eax - 0x13c]
fstp dword [ecx + 0x70]
fld dword [ebp + eax - 0xc0]
fstp dword [ecx - 0x40]
fld dword [ebp + eax - 0xfc]
fstp dword [ecx - 4]
fld dword [ebp + eax - 0x84]
fstp dword [ecx + 0x38]
fld dword [ebp + eax - 0x138]
fstp dword [ecx + 0x74]
cmp eax, 0x3c
jl 0x401737
fld dword [ebp - 0x23c]
add dword [ebp - 0x238], 0xf4
add dword [ebp - 0x234], 4
fstp dword [ebx]
inc edi
add ebx, 0x100
cmp edi, dword [ebp - 0x22c]
jl 0x4013f9
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x240]
cmp dword [eax + 0x10], 0
je 0x401960
mov edi, dword [esi + 0xa2c]
test edi, edi
je 0x401960
mov eax, dword [esi + 0xa38]
lea ecx, [eax - 1]
and ecx, 1
cmp dword [esi + eax*4 + 0xa30], 0
je 0x401884
cmp dword [esi + ecx*4 + 0xa30], 0
jne 0x401960
mov eax, ecx
mov edx, dword [esi + 0xa40]
imul edx, eax
add edx, edi
mov dword [esi + 0xa38], eax
je 0x401956
mov edi, dword [ebp - 0x22c]
xor ecx, ecx
test edi, edi
jle 0x401932
fld dword [ebp - 0x248]
lea eax, [ebp - 0x44]
sub edx, eax
fld dword [ebp + ecx*4 - 0x44]
lea eax, [ebp + ecx*4 - 0x44]
fstp dword [eax + edx]
fld dword [eax]
fmul st(1)
fstp dword [ebp - 0x228]
mov ebx, dword [ebp - 0x228]
and ebx, 0x7f800000
cmp ebx, 0x1f800000
jge 0x4018e9
fxch st(1)
fst dword [ebp - 0x228]
fxch st(1)
fld dword [ebp - 0x228]
fstp dword [eax]
fld dword [ebp + ecx*4 - 0x24]
fstp dword [eax + edx + 0x20]
fld dword [ebp + ecx*4 - 0x24]
fmul st(1)
fstp dword [ebp - 0x228]
mov eax, dword [ebp - 0x228]
and eax, 0x7f800000
cmp eax, 0x1f800000
jge 0x401921
fxch st(1)
fst dword [ebp - 0x228]
fxch st(1)
fld dword [ebp - 0x228]
inc ecx
fstp dword [ebp + ecx*4 - 0x28]
cmp ecx, edi
jl 0x4018b6
fstp st(0)
cmp dword [esi + 0xa2c], 0
fstp st(0)
je 0x401958
mov ecx, dword [esi + 0xa38]
mov edx, dword [ebp - 0x22c]
mov dword [esi + ecx*4 + 0xa30], 1
jmp 0x401962
fstp st(0)
mov edx, dword [ebp - 0x22c]
jmp 0x401962
fstp st(0)
xor eax, eax
pop edi
pop ebx
cmp edx, 4
jl 0x4019d4
add edx, 0xfffffffd
lea ecx, [esi + 0x320]
fld dword [ebp + eax*4 - 0x44]
add eax, 4
fstp dword [ecx - 4]
add ecx, 0x400
fld dword [ebp + eax*4 - 0x34]
fstp dword [ecx - 0x400]
fld dword [ebp + eax*4 - 0x50]
fstp dword [ecx - 0x304]
fld dword [ebp + eax*4 - 0x30]
fstp dword [ecx - 0x300]
fld dword [ebp + eax*4 - 0x4c]
fstp dword [ecx - 0x204]
fld dword [ebp + eax*4 - 0x2c]
fstp dword [ecx - 0x200]
fld dword [ebp + eax*4 - 0x48]
fstp dword [ecx - 0x104]
fld dword [ebp + eax*4 - 0x28]
fstp dword [ecx - 0x100]
cmp eax, edx
jl 0x401974
mov edx, dword [ebp - 0x22c]
cmp eax, edx
jge 0x401a00
mov ecx, eax
shl ecx, 8
lea esi, [ecx + esi + 0x320]
fld dword [ebp + eax*4 - 0x44]
inc eax
fstp dword [esi - 4]
add esi, 0x100
fld dword [ebp + eax*4 - 0x28]
fstp dword [esi - 0x100]
cmp eax, edx
jl 0x4019e4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040a567
mov esp, ebp
pop ebp
ret