Function at 0x40a3e0
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 [0x41917c]
fnstsw ax
test ah, 1
mov eax, esi
cdq
jne 0x40a47e
sub eax, edx
sar eax, 1
shl eax, 2
mov dword [esp + eax + 0x8c], edi
mov dword [esp + eax + 0x10c], ebp
jmp 0x40a4a9
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 0x40a452
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 0x40a4fc
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x10], eax
fld dword [ecx - 8]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40a511
mov eax, dword [ecx - 8]
mov dword [esp + 0x14], eax
fcom dword [ecx]
fnstsw ax
test ah, 1
je 0x40a51e
fstp st(0)
fld dword [ecx]
add ecx, 0x20
dec edx
jne 0x40a4e7
fadd dword [esp + 0x14]
fld dword [0x41917c]
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 0x40a53c
fxch st(1)
fmul dword [0x41919c]
fxch st(1)
fsub st(1)
fld dword [ebx + 0x14]
fxch st(1)
fmul dword [0x4191a0]
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 0x40a59c
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x10], eax
fld dword [ecx - 8]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40a5b1
mov eax, dword [ecx - 8]
mov dword [esp + 0x14], eax
fcom dword [ecx]
fnstsw ax
test ah, 1
je 0x40a5be
fstp st(0)
fld dword [ecx]
add ecx, 0x20
dec edx
jne 0x40a587
fadd dword [esp + 0x14]
fld dword [0x41917c]
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 0x40a5db
fxch st(1)
fmul dword [0x41919c]
fxch st(1)
fsub st(1)
fmul dword [0x4191a0]
fsubp st(1)
fcom dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x40a611
fstp dword [esp + 0x4c]
jmp 0x40a613
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 0x40a647
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 0x40a635
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 0x40a6cc
mov eax, dword [esp + 0x20]
add ebx, 0x10
dec eax
mov dword [esp + 0x20], eax
jne 0x40a6be
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 0x40a72b
add edi, 0x10
dec ebx
jne 0x40a71d
mov edx, dword [0x437984]
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 0x40a8de
fstp dword [esp + 0x24]
mov edx, 1
jmp 0x40a8e0
fstp st(0)
fld dword [esp + 0x24]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x40a9c7
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 0x40a993
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 0x40a997
fstp st(0)
fstp st(0)
add ecx, 8
add esi, 0x20
cmp ecx, 0x40
jl 0x40a907
mov eax, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jle 0x40aa48
mov ecx, dword [esp + 0x34]
sub ecx, 0x20
sub ebp, 0x20
mov dword [esp + 0x34], ecx
jmp 0x40a9cc
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 0x40a877
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 0x40a812
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 0x40a7bd
jmp 0x40aa4e
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 [0x437984], 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 0x40aad0
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 0x40aaee
fild dword [esp + 0x38]
fstp dword [edx + ebx*4]
cmp ebp, 0x3c
jge 0x40aafa
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 0x40ab40
cmp eax, edx
jge 0x40ab68
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 0x40ab2e
jmp 0x40ab64
cmp eax, edx
jge 0x40ab68
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 0x40ab54
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0x10]
jle 0x40ab99
cmp eax, 0x3c
jge 0x40abc2
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 0x40ab87
jmp 0x40abbe
cmp eax, 0x3c
jge 0x40abc2
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 0x40abae
mov ebp, dword [esp + 0x30]
cmp ebx, 0x3c
jge 0x40abff
mov eax, dword [esp + 0x38]
mov ecx, edi
test eax, eax
lea eax, [esi + ebx*4]
mov edx, 0x3c
jle 0x40abed
sub edx, ebx
fld dword [eax]
fadd dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40abdb
jmp 0x40abff
sub edx, ebx
fld dword [eax]
fsub dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40abef
cmp ebp, 0x3c
jge 0x40ac3c
mov eax, dword [esp + 0x1c]
mov ecx, edi
test eax, eax
lea eax, [esi + ebp*4]
mov edx, 0x3c
jle 0x40ac2a
sub edx, ebp
fld dword [eax]
fadd dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40ac18
jmp 0x40ac3c
sub edx, ebp
fld dword [eax]
fsub dword [ecx]
add eax, 4
add ecx, 4
dec edx
fstp dword [eax - 4]
jne 0x40ac2c
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 0x40ac64
mov dword [eax], 1
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x40ac6f
add dword [eax], 2
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x40ac7a
add dword [eax], 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x40ac85
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