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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc8
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x48]
push edi
push edx
mov eax, dword [ecx]
mov dword [esp + 0x78], ebx
call dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x4c]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
call fcn.004044f0
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], edx
call fcn.00403000
fld dword [esp + 0x24]
fdiv st(1)
mov eax, dword [0x47dbc4]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fdiv st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fdiv st(1)
fstp dword [esp + 0x2c]
fstp st(0)
fld dword [eax + 0x150]
fsub dword [esp + 0x40]
fstp dword [esp + 0x18]
fld dword [eax + 0x154]
fsub dword [esp + 0x44]
fstp dword [esp + 0x1c]
fld dword [eax + 0x158]
fsub dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x34]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
call fcn.00403000
fld dword [esp + 0x34]
fdiv st(1)
sub esp, 8
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fdiv st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fdiv st(1)
fstp dword [esp + 0x44]
fstp st(0)
fld dword [esp + 0x2c]
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x1c]
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
add esp, 8
fnstsw ax
test ah, 1
je 0x40247a
fld dword [esp + 0x14]
fchs
fstp dword [esp + 0x14]
fld dword [esp + 0x34]
sub esp, 8
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x18]
fld dword [esp + 0x44]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
fld dword [esp + 0x18]
add esp, 8
fnstsw ax
test ah, 1
je 0x4024af
fchs
fsubr dword [esp + 0x14]
fcom dword [0x46729c]
fnstsw ax
test ah, 1
je 0x4024d3
fadd dword [0x467298]
fcom dword [0x46729c]
fnstsw ax
test ah, 1
jne 0x4024c0
fcom dword [0x467298]
fnstsw ax
test ah, 0x41
jne 0x4024f3
fsub dword [0x467298]
fcom dword [0x467298]
fnstsw ax
test ah, 0x41
je 0x4024e0
fld st(0)
fabs
fcomp qword [0x467290]
fnstsw ax
test ah, 1
je 0x402522
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea eax, [ebx + 0xc]
fstp st(0)
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x402635
fcomp dword [0x4672a0]
fld dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4025b7
sub esp, 8
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
fld dword [esp + 0x18]
add esp, 8
fnstsw ax
test ah, 1
je 0x402568
fchs
fsub dword [0x467288]
lea ebp, [ebx + 0xc]
fstp qword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
push esi
push edi
call fcn.00403190
fstp dword [esp + 4]
add esp, 4
push 0
push esi
push edi
call fcn.00403130
fstp dword [esp + 4]
add esp, 4
lea ecx, [esp + 0x58]
call fcn.00402dd0
mov edx, dword [eax]
mov dword [ebp], edx
mov ecx, dword [eax + 4]
mov dword [ebp + 4], ecx
mov edx, dword [eax + 8]
mov dword [ebp + 8], edx
jmp 0x402635
sub esp, 8
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
fld dword [esp + 0x18]
add esp, 8
fnstsw ax
test ah, 1
je 0x4025e8
fchs
fadd dword [0x467288]
lea ebp, [ebx + 0xc]
fstp qword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
push esi
push edi
call fcn.00403190
fstp dword [esp + 4]
add esp, 4
push 0
push esi
push edi
call fcn.00403130
fstp dword [esp + 4]
add esp, 4
lea ecx, [esp + 0x58]
call fcn.00402dd0
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [0x47dbc4]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
xor ebp, ebp
call fcn.0040b150
add eax, 0x90
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
jmp 0x40267c
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
test ecx, ecx
jne 0x40268f
lea ecx, [esp + 0x6c]
call fcn.00402db0
mov ecx, dword [esp + 0x70]
jmp 0x4026a1
mov ecx, dword [ecx + 4]
test ecx, ecx
mov dword [esp + 0x70], ecx
je 0x402946
mov eax, dword [ecx + 8]
test eax, eax
je 0x402946
test ecx, ecx
jne 0x4026b1
xor eax, eax
jmp 0x4026b4
mov eax, dword [ecx + 8]
cmp dword [eax + 0x18], 2
je 0x4026cb
test ecx, ecx
jne 0x4026c2
xor eax, eax
jmp 0x4026c5
mov eax, dword [ecx + 8]
cmp dword [eax + 0x18], 3
jne 0x40267c
test ecx, ecx
je 0x4026d2
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
lea eax, [esp + 0xa8]
push eax
call dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xb4]
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x80], eax
fld dword [esp + 0x80]
fsub dword [esp + 0x48]
fstp dword [esp + 0x30]
fld dword [esp + 0x7c]
fsub dword [esp + 0x44]
mov esi, dword [esp + 0x30]
push esi
fstp dword [esp + 0x14]
fld dword [esp + 0x7c]
fsub dword [esp + 0x44]
mov edi, dword [esp + 0x14]
push edi
fstp dword [esp + 0x60]
mov ebx, dword [esp + 0x60]
push ebx
call fcn.00402dd0
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
call fcn.00403000
fld dword [esp + 0x60]
fdiv st(1)
sub esp, 8
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fdiv st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x70]
fdiv st(1)
fstp dword [esp + 0x70]
fstp st(0)
fld dword [esp + 0x2c]
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
add esp, 8
fnstsw ax
test ah, 1
je 0x4027ae
fld dword [esp + 0x10]
fchs
fstp dword [esp + 0x10]
fld dword [esp + 0x60]
sub esp, 8
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x38]
fld dword [esp + 0x70]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
fld dword [esp + 0x38]
add esp, 8
fnstsw ax
test ah, 1
je 0x4027e3
fchs
fsubr dword [esp + 0x10]
fcom dword [0x46729c]
fnstsw ax
test ah, 1
je 0x402807
fadd dword [0x467298]
fcom dword [0x46729c]
fnstsw ax
test ah, 1
jne 0x4027f4
fcom dword [0x467298]
fnstsw ax
test ah, 0x41
jne 0x402827
fsub dword [0x467298]
fcom dword [0x467298]
fnstsw ax
test ah, 0x41
je 0x402814
fabs
fcomp qword [0x467280]
fnstsw ax
test ah, 1
je 0x402674
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa0]
sub esp, 0xc
mov ecx, esp
push esi
push edi
mov dword [ecx], edx
mov edx, dword [esp + 0xb8]
push ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
lea ecx, [esp + 0xe4]
call fcn.00402dd0
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0xd8]
push ecx
call fcn.00402df0
mov edx, dword [eax]
add esp, 0x1c
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x4c]
mov edx, dword [eax + 8]
mov dword [esp + 0x54], edx
call fcn.00403000
fcomp dword [0x46727c]
fnstsw ax
test ah, 0x41
je 0x402674
push esi
push edi
push ebx
lea ecx, [esp + 0x90]
call fcn.00402dd0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
test ebp, ebp
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fsqrt
fstp dword [esp + 0x10]
je 0x40291a
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x402674
lea ecx, [esp + 0x6c]
call fcn.00402da0
fld dword [esp + 0x10]
fcomp dword [0x467278]
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov dword [esp + 0x14], ecx
fnstsw ax
test ah, 1
je 0x402674
mov ebx, dword [esp + 0x74]
test ebp, ebp
je 0x402a67
fld dword [esp + 0x14]
fcomp dword [0x467278]
fnstsw ax
test ah, 1
je 0x402a67
mov edx, dword [ebp]
lea eax, [esp + 0x84]
push eax
mov ecx, ebp
call dword [edx + 0xc]
mov ecx, dword [eax]
sub esp, 0xc
mov dword [esp + 0x58], ecx
mov ecx, esp
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 4], eax
lea eax, [esp + 0x90]
push eax
mov dword [ecx + 8], edx
lea ecx, [esp + 0x5c]
call fcn.00403030
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
call fcn.00402fc0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00402f00
fcomp dword [0x4672a0]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x402a2a
lea eax, [esp + 0x84]
push 0x3f490fdb
push eax
lea ecx, [esp + 0x20]
call fcn.00402e60
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x10], edx
mov eax, dword [eax + 8]
mov dword [ebx + 8], 3
mov dword [ebx + 0x14], eax
mov dword [ebx + 8], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x84]
push 0xbf490fdb
push ecx
lea ecx, [esp + 0x20]
call fcn.00402e60
mov edx, dword [eax]
mov dword [ebx + 0xc], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x10], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 8], 3
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x14]
fcomp dword [0x4672a0]
fnstsw ax
test ah, 0x40
jne 0x402a9f
fld dword [esp + 0x14]
fmul dword [0x467274]
fsub dword [0x467270]
call fcn.0045bc9c
mov dword [ebx + 8], eax
mov dword [ebx + 8], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 8], 5
pop edi
mov dword [ebx + 8], 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret