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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
cmp esi, edx
push edi
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0xc11cf5c3
mov dword [esp + 0xbc], 0
jne 0x401388
mov eax, dword [ecx + 0x130]
jmp 0x40138d
mov eax, 1
xor edi, edi
cmp eax, edx
jle 0x4018f9
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], eax
jmp 0x4013b0
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0xb0]
xor edx, edx
lea ecx, [ecx]
cmp esi, edx
jne 0x4013be
mov esi, dword [ecx + 0x134]
add esi, dword [esp + 0x58]
mov eax, dword [esi + 0x110]
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], edx
mov edx, dword [esp + 0xb4]
lea ebx, [esi + 0x78]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [esp + 0xb8]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x10c]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4018dc
test eax, eax
je 0x4018dc
add eax, 0x94
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], ecx
fld dword [esp + 0x28]
mov dword [esp + 0x2c], edx
fstp qword [esp + 0x7c]
fld dword [esp + 0x2c]
mov dword [esp + 0x30], eax
fstp qword [esp + 0x84]
fld dword [esp + 0x30]
lea ecx, [esp + 0x7c]
push ecx
fstp qword [esp + 0x90]
mov ecx, 0x7c9360
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3ff00000
mov dword [esp + 0xa0], 0x40000000
mov dword [esp + 0xa4], 0x479e17b8
mov dword [esp + 0xb0], edi
call fcn.0044c4c0
mov edi, eax
test edi, edi
je 0x4018dc
fld qword [esp + 0xa4]
lea edx, [esi + 0x94]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
mov dword [esp + 0x38], ecx
fstp qword [esp + 0x7c]
fld dword [esp + 0x38]
lea eax, [esp + 0x10]
mov dword [esp + 0x3c], edx
fstp qword [esp + 0x84]
fld dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x80]
push ecx
fstp qword [esp + 0x94]
mov ecx, 0x7c9360
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0x3ff00000
mov dword [esp + 0xa4], 0x40000000
mov dword [esp + 0xa8], 0x479e17b8
mov dword [esp + 0xb4], edi
call fcn.0044c550
mov edi, eax
test edi, edi
je 0x4018dc
fld qword [esp + 0xa4]
mov edx, dword [esp + 0x5c]
add edx, 0x94
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x38]
fld dword [esp + 0x40]
mov dword [esp + 0x44], ecx
fstp qword [esp + 0x7c]
fld dword [esp + 0x44]
mov dword [esp + 0x48], edx
fstp qword [esp + 0x84]
fld dword [esp + 0x48]
lea eax, [esp + 0x7c]
fstp qword [esp + 0x8c]
push eax
mov ecx, 0x7c9360
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0x3ff00000
mov dword [esp + 0xa0], 0x40000000
mov dword [esp + 0xa4], 0x479e17b8
mov dword [esp + 0xb0], edi
call fcn.0044c4c0
mov edi, eax
test edi, edi
je 0x4018dc
fld qword [esp + 0xa4]
fstp dword [esp + 0x44]
fld dword [esp + 0x28]
fsub dword [esp + 0x40]
fld dword [esp + 0x2c]
fsub dword [esp + 0x44]
fld dword [esp + 0x30]
fsub dword [esp + 0x48]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fcomp dword [0x59e440]
fnstsw ax
test ah, 0x44
jnp 0x4018d6
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0x18]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
fmul st(3)
fld dword [esp + 0x10]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edx
fstp st(0)
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
fstp st(0)
fstp st(0)
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fld st(0)
fsqrt
fcomp dword [0x59e440]
fnstsw ax
test ah, 0x44
jnp 0x4018da
fsqrt
fdivr dword [0x59e43c]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fmul dword [esp + 0x24]
fld dword [esp + 0x20]
fmul dword [esp + 0x18]
fld st(1)
fmul dword [esp + 0x14]
fsubp st(1)
fld st(1)
fmul dword [esp + 0x10]
fld dword [esp + 0x18]
fmul dword [esp + 0x1c]
fsubp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fsubp st(1)
fld dword [esp + 0x18]
fmul dword [0x59e440]
fld dword [esp + 0x14]
fmul dword [0x59e438]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x59e440]
faddp st(1)
fld st(4)
fmul dword [0x59e440]
fld dword [esp + 0x20]
fmul dword [0x59e438]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [0x59e440]
faddp st(1)
fstp dword [ebx]
fstp dword [ebx + 4]
fld dword [0x59e440]
fmul st(1)
fld st(2)
fmul dword [0x59e438]
faddp st(1)
fld st(3)
fmul dword [0x59e440]
faddp st(1)
fstp dword [ebx + 8]
fld dword [esp + 0x28]
fsub dword [esp + 0x34]
fld dword [esp + 0x2c]
fsub dword [esp + 0x38]
fld dword [esp + 0x30]
fsub dword [esp + 0x3c]
fstp dword [esp + 0xd4]
fld st(5)
fmul dword [esp + 0xd4]
fld dword [esp + 0x20]
fmul st(2)
faddp st(1)
fld st(2)
fmul dword [esp + 0x1c]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x18]
fmul dword [esp + 0xd4]
fld dword [esp + 0x14]
fmul st(2)
faddp st(1)
fld st(2)
fmul dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0xd4]
fmul st(3)
fxch st(1)
fmul st(4)
faddp st(1)
fxch st(1)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x78]
fld dword [esp + 0x40]
fsub dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x38]
fld dword [esp + 0x48]
fsub dword [esp + 0x3c]
fstp dword [esp + 0xc8]
fxch st(5)
fmul dword [esp + 0xc8]
fld dword [esp + 0x20]
fmul st(6)
faddp st(1)
fld st(1)
fmul dword [esp + 0x1c]
faddp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x18]
fmul dword [esp + 0xc8]
fld dword [esp + 0x14]
fmul st(6)
faddp st(1)
fld st(1)
fmul dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0xc8]
fmul st(2)
fxch st(5)
fmul st(3)
faddp st(5)
fmul st(3)
sub esp, 0x10
faddp st(4)
fxch st(3)
fstp dword [esp + 0x7c]
fstp st(2)
fstp st(1)
fstp st(0)
fld dword [esp + 0x7c]
fstp qword [esp + 8]
fld dword [esp + 0x74]
fstp qword [esp]
push 0
fld dword [esp + 0x8c]
push 0
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld dword [esp + 0xa0]
fstp qword [esp]
call fcn.00401180
fst dword [esi + 0x70]
fld dword [esp + 0x70]
fadd dword [esp + 0x64]
fcomp dword [0x59e440]
fnstsw ax
test ah, 5
jp 0x40187e
fchs
fstp dword [esi + 0x70]
jmp 0x401880
fstp st(0)
fld dword [esp + 0x6c]
sub esp, 0x10
fstp qword [esp + 8]
fld dword [esp + 0x78]
fstp qword [esp]
push 0
fld dword [esp + 0x8c]
push 0
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld dword [esp + 0xa4]
fstp qword [esp]
call fcn.00401180
fst dword [esi + 0x74]
fld dword [esp + 0x74]
fadd dword [esp + 0x68]
fcomp dword [0x59e440]
fnstsw ax
test ah, 0x41
jne 0x4018da
fchs
fstp dword [esi + 0x74]
jmp 0x4018dc
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
add ecx, 0x13c
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
jne 0x4013a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4