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

Disassembly:
sub esp, 0x17c
mov eax, dword [esp + 0x184]
push ebx
mov ebx, dword [esp + 0x184]
add eax, 0x20
mov dword [esp + 0x58], eax
add eax, 0x40
mov dword [esp + 0x44], eax
add eax, 0x120
mov dword [esp + 0x10], eax
xor ecx, ecx
add eax, 0x100
mov dword [ebx + 0xf0], ecx
mov dword [esp + 0x34], eax
add eax, 0x100
mov dword [ebx + 0xf4], ecx
push ebp
mov dword [esp + 0x58], eax
mov dword [ebx + 0xf8], ecx
push esi
add eax, 0x200
push edi
mov dword [ebx + 0xfc], ecx
mov dword [esp + 0x78], eax
xor esi, esi
mov ecx, ebx
mov edi, 1
mov ebp, 2
fld dword [ecx]
fadd dword [ecx + 4]
fcomp dword [0x41804c]
fnstsw ax
test ah, 1
mov eax, esi
cdq
jne 0x40a12e
sub eax, edx
sar eax, 1
shl eax, 2
mov dword [esp + eax + 0x8c], edi
mov dword [esp + eax + 0x10c], ebp
jmp 0x40a159
fld dword [ecx]
fchs
fstp dword [ecx]
fld dword [ecx + 4]
sub eax, edx
sar eax, 1
shl eax, 2
fchs
fstp dword [ecx + 4]
mov dword [esp + eax + 0x8c], 0xffffffff
mov dword [esp + eax + 0x10c], 0xfffffffe
add esi, ebp
add ecx, 8
cmp esi, 0x3c
jl 0x40a102
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
fld dword [ebx + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x188], ebp
mov dword [esp + 0x184], ebp
mov dword [esp + 0x14], eax
lea ecx, [ebx + 0x30]
mov edx, 7
fld dword [ecx - 0x10]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40a1ac
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x10], eax
fld dword [ecx - 8]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40a1c1
mov eax, dword [ecx - 8]
mov dword [esp + 0x14], eax
fcom dword [ecx]
fnstsw ax
test ah, 1
je 0x40a1ce
fstp st(0)
fld dword [ecx]
add ecx, 0x20
dec edx
jne 0x40a197
fadd dword [esp + 0x14]
fld dword [0x41804c]
fxch st(1)
fadd dword [esp + 0x10]
lea eax, [ebx + 0x10]
mov ecx, 8
fld dword [eax - 0x10]
fadd dword [eax - 8]
add eax, 0x20
dec ecx
fadd dword [eax - 0x20]
faddp st(2)
jne 0x40a1ec
fxch st(1)
fmul dword [0x41806c]
fxch st(1)
fsub st(1)
fld dword [ebx + 0x14]
fxch st(1)
fmul dword [0x418070]
lea esi, [ebx + 0x14]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x10], ecx
fsubr st(2)
fxch st(1)
fstp st(2)
mov dword [esp + 0x14], edx
lea ecx, [ebx + 0x34]
fstp dword [esp + 0x4c]
mov edx, 7
fld dword [ecx - 0x10]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40a24c
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x10], eax
fld dword [ecx - 8]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40a261
mov eax, dword [ecx - 8]
mov dword [esp + 0x14], eax
fcom dword [ecx]
fnstsw ax
test ah, 1
je 0x40a26e
fstp st(0)
fld dword [ecx]
add ecx, 0x20
dec edx
jne 0x40a237
fadd dword [esp + 0x14]
fld dword [0x41804c]
fxch st(1)
fadd dword [esp + 0x10]
mov eax, esi
mov ecx, 8
fld dword [eax - 8]
fadd dword [eax - 0x10]
add eax, 0x20
dec ecx
fadd dword [eax - 0x20]
faddp st(2)
jne 0x40a28b
fxch st(1)
fmul dword [0x41806c]
fxch st(1)
fsub st(1)
fmul dword [0x418070]
fsubp st(1)
fcom dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x40a2c1
fstp dword [esp + 0x4c]
jmp 0x40a2c3
fstp st(0)
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x8c]
lea edx, [ecx + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 8
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x114]
mov ebx, 8
mov ecx, dword [ecx]
mov ebp, dword [eax - 4]
add edx, 4
imul ebp, ecx
mov dword [esp + 0x18], ebp
mov ebp, ecx
imul ebp, dword [eax]
fild dword [esp + 0x18]
fmul dword [edx - 4]
fstp dword [edx - 4]
mov dword [esp + 0x18], ebp
mov ebp, dword [eax + 4]
fild dword [esp + 0x18]
imul ebp, ecx
fmul dword [esi]
fstp dword [esi]
mov dword [esp + 0x18], ebp
add esi, 4
fild dword [esp + 0x18]
add edi, 4
add eax, 0x10
dec ebx
fmul dword [edi - 4]
fstp dword [edi - 4]
jne 0x40a2f7
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add ecx, 0x10
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jne 0x40a2e5
mov ecx, dword [esp + 0x60]
lea ebx, [esp + 0x90]
mov dword [esp + 0x20], 8
lea edx, [ecx + 0x100]
mov esi, dword [ebx]
lea eax, [esp + 0x118]
mov edi, 8
mov ebp, dword [eax - 4]
add ecx, 4
imul ebp, esi
mov dword [esp + 0x18], ebp
mov ebp, esi
imul ebp, dword [eax]
fild dword [esp + 0x18]
fmul dword [ecx - 4]
fstp dword [ecx - 4]
mov dword [esp + 0x18], ebp
add edx, 4
fild dword [esp + 0x18]
add eax, 0x10
dec edi
fmul dword [edx - 4]
fstp dword [edx - 4]
jne 0x40a37c
mov eax, dword [esp + 0x20]
add ebx, 0x10
dec eax
mov dword [esp + 0x20], eax
jne 0x40a36e
mov eax, dword [esp + 0x78]
lea edi, [esp + 0x94]
mov ebx, 8
mov esi, dword [edi]
lea ecx, [esp + 0x118]
mov edx, 8
mov ebp, esi
add eax, 4
imul ebp, dword [ecx]
mov dword [esp + 0x18], ebp
add ecx, 0x10
fild dword [esp + 0x18]
dec edx
fmul dword [eax - 4]
fstp dword [eax - 4]
jne 0x40a3db
add edi, 0x10
dec ebx
jne 0x40a3cd
mov edx, dword [0x4346fc]
mov eax, dword [esp + 0x194]
xor ecx, ecx
add edx, 0x78
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], ecx
lea eax, [edx + 0x20]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 0x10], 2
mov dword [esp + 0x18], 4
mov dword [esp + 0x30], 6
mov dword [esp + 0x20], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x64]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
add eax, 0x100
mov ebp, eax
mov eax, dword [esp + 0x190]
add eax, 8
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
fld dword [esp + 0x7c]
fadd dword [ecx]
fld dword [eax + 4]
fld dword [eax]
fadd dword [esp + 0x84]
fxch st(1)
fadd dword [esp + 0x88]
fxch st(2)
mov eax, dword [esp + 0x70]
add ecx, 4
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x64]
fadd dword [eax]
fxch st(1)
fxch st(2)
fxch st(1)
add eax, 4
mov edx, dword [esp + 0x78]
mov dword [esp + 0x70], eax
lea eax, [ecx + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x190]
add eax, 0x10
mov dword [esp + 0x44], edx
mov ebx, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
add ecx, 4
fld dword [eax]
fld dword [eax + 4]
mov eax, dword [esp + 0x3c]
add edx, 4
fadd st(3)
fxch st(1)
fadd st(4)
fld st(2)
fadd dword [eax]
fxch st(1)
fld st(2)
fxch st(2)
fadd dword [ecx - 4]
fxch st(1)
fstp dword [esp + 0x24]
fxch st(1)
fcomp dword [esp + 0x24]
add eax, 4
mov dword [esp + 0x74], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], ecx
fadd dword [edx - 4]
fnstsw ax
xor edx, edx
test ah, 0x41
fstp dword [esp + 0x80]
jne 0x40a58e
fstp dword [esp + 0x24]
mov edx, 1
jmp 0x40a590
fstp st(0)
fld dword [esp + 0x24]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x40a677
mov eax, dword [esp + 0x190]
mov edi, dword [esp + 0x50]
mov ecx, 6
lea esi, [eax + edx*4 + 0x18]
mov eax, dword [esp + 0x44]
add ebp, 4
fld dword [esp + 0x80]
fadd dword [eax]
fld dword [esi]
fadd dword [esp + 0x24]
fxch st(1)
fadd dword [ebp - 4]
fld dword [esp + 0x58]
fld dword [esp + 0x68]
fxch st(2)
mov eax, dword [esp + 0x34]
add edi, 4
fadd dword [eax]
fld st(3)
fxch st(1)
fadd dword [edi - 4]
fxch st(1)
fmul st(4)
fxch st(1)
mov eax, dword [esp + 0x44]
add eax, 4
fstp st(4)
fxch st(2)
fmul st(3)
fxch st(1)
fmul st(2)
fxch st(1)
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
fcompp
add eax, 4
mov dword [esp + 0x34], eax
fnstsw ax
test ah, 1
je 0x40a643
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
fstp dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
jmp 0x40a647
fstp st(0)
fstp st(0)
add ecx, 8
add esi, 0x20
cmp ecx, 0x40
jl 0x40a5b7
mov eax, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jle 0x40a6f8
mov ecx, dword [esp + 0x34]
sub ecx, 0x20
sub ebp, 0x20
mov dword [esp + 0x34], ecx
jmp 0x40a67c
add dword [esp + 0x44], 0x20
mov ecx, dword [esp + 0x48]
add ebx, 8
add ecx, 0x20
cmp ebx, 0x40
mov dword [esp + 0x48], ecx
jl 0x40a527
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, 0x20
fstp st(0)
add eax, 8
sub ebx, ecx
fstp st(0)
add ebp, ecx
add edx, ecx
cmp eax, 0x3c
mov dword [esp + 0x3c], ebx
fstp st(0)
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
jl 0x40a4c2
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
add eax, 8
add ebx, ecx
add edi, ecx
add edx, ecx
cmp eax, 0x3c
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
jl 0x40a46d
jmp 0x40a6fe
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
mov dword [0x4346fc], ecx
mov ecx, dword [esp + 0x10]
mov edx, esi
sar edx, 1
sar ecx, 1
mov eax, dword [esp + edx*4 + 0x8c]
mov edx, dword [esp + ecx*4 + 0x8c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov eax, ebx
mov edx, ebp
sar eax, 1
sar edx, 1
mov ecx, dword [esp + eax*4 + 0x8c]
mov eax, dword [esp + edx*4 + 0x8c]
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
mov ecx, 0x3c
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x40a780
mov edi, dword [esp + 0x10]
inc esi
inc edi
inc ebx
inc ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], ebp
fild dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
cmp ebx, 0x3c
fstp dword [edx + esi*4]
fild dword [esp + 0x28]
fstp dword [edx + ecx*4]
jge 0x40a79e
fild dword [esp + 0x38]
fstp dword [edx + ebx*4]
cmp ebp, 0x3c
jge 0x40a7aa
fild dword [esp + 0x1c]
fstp dword [edx + ebp*4]
mov esi, dword [esp + 0x1a0]
mov edx, 0x3c
mov ecx, edx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x198]
test eax, eax
mov eax, dword [esp + 0x14]
jle 0x40a7f0
cmp eax, edx
jge 0x40a818
mov ebp, eax
mov ecx, edi
sub edx, ebp
lea eax, [esi + ebp*4]
fld dword [eax]
fadd dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a7de
jmp 0x40a814
cmp eax, edx
jge 0x40a818
mov ebp, dword [esp + 0x14]
mov edx, 0x3c
mov ecx, edi
sub edx, ebp
lea eax, [esi + ebp*4]
fld dword [eax]
fsub dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a804
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0x10]
jle 0x40a849
cmp eax, 0x3c
jge 0x40a872
mov ebp, eax
mov edx, 0x3c
mov ecx, edi
sub edx, ebp
lea eax, [esi + ebp*4]
fld dword [eax]
fadd dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a837
jmp 0x40a86e
cmp eax, 0x3c
jge 0x40a872
mov ebp, dword [esp + 0x10]
mov edx, 0x3c
mov ecx, edi
sub edx, ebp
lea eax, [esi + ebp*4]
fld dword [eax]
fsub dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a85e
mov ebp, dword [esp + 0x30]
cmp ebx, 0x3c
jge 0x40a8af
mov eax, dword [esp + 0x38]
mov ecx, edi
test eax, eax
lea eax, [esi + ebx*4]
mov edx, 0x3c
jle 0x40a89d
sub edx, ebx
fld dword [eax]
fadd dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a88b
jmp 0x40a8af
sub edx, ebx
fld dword [eax]
fsub dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a89f
cmp ebp, 0x3c
jge 0x40a8ec
mov eax, dword [esp + 0x1c]
mov ecx, edi
test eax, eax
lea eax, [esi + ebp*4]
mov edx, 0x3c
jle 0x40a8da
sub edx, ebp
fld dword [eax]
fadd dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a8c8
jmp 0x40a8ec
sub edx, ebp
fld dword [eax]
fsub dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40a8dc
mov edx, dword [esp + 0x1a4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x1a8]
test ecx, ecx
mov dword [eax], 0
jle 0x40a914
mov dword [eax], 1
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x40a91f
add dword [eax], 2
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x40a92a
add dword [eax], 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x40a935
add dword [eax], 8
mov eax, dword [esp + 0x10]
and ebp, 0xfffffff8
and ebx, 0xfffffff8
and al, 0xf8
pop edi
pop esi
lea ecx, [ebx + ebp*8]
pop ebp
pop ebx
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 4]
sar ecx, 3
add eax, ecx
add esp, 0x17c
ret