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

Disassembly:
sub esp, 0x70
push ebp
mov ebp, ecx
fld dword [ebp + 0xec]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x41
jp 0x49756e
mov eax, dword [ebp + 0xe8]
mov dword [esp + 4], eax
and eax, 0x7fffffff
mov dword [esp + 4], eax
fld dword [esp + 4]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x41
jp 0x49756e
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x50]
mov dword [ecx], edx
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x58]
mov dword [ecx + 8], edx
mov dword [eax], 0
pop ebp
add esp, 0x70
ret 8
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 0x164]
test eax, eax
jne 0x497597
add ecx, 0x108
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x40], ecx
jmp 0x4975a1
lea edx, [esp + 0x38]
push edx
call fcn.004d2520
push esi
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [0x6800e0]
push 1
push edi
call fcn.004cd340
mov esi, eax
test esi, esi
je 0x497839
cmp esi, ebp
je 0x49782e
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx + 0x164]
test eax, eax
jne 0x497609
add ecx, 0x108
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
jmp 0x497613
lea edx, [esp + 0x28]
push edx
call fcn.004d2520
fld dword [esp + 0x40]
fsub dword [esp + 0x28]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
fsub dword [esp + 0x30]
fst dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fst dword [esp + 0x18]
fst dword [esp + 0xc]
fcomp dword [0x5e8ba0]
fnstsw ax
test ah, 5
jp 0x4976bd
fld dword [esi + 0x1374]
fmul dword [0x5da2e4]
fst dword [esp + 0x14]
fcomp dword [ebp + 0x1374]
fnstsw ax
test ah, 0x41
jne 0x49768f
mov eax, dword [esp + 0x14]
push 0x3fc00000
push eax
mov ecx, ebp
jmp 0x4976b8
fld dword [ebp + 0x1374]
fmul dword [0x5da2e4]
fst dword [esp + 0x14]
fcomp dword [esi + 0x1374]
fnstsw ax
test ah, 0x41
jne 0x4976bd
mov ecx, dword [esp + 0x14]
push 0x3fc00000
push ecx
mov ecx, esi
call fcn.00475d30
fld dword [esi + 0x58]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x41
jne 0x49782e
fld dword [esp + 0xc]
fcomp dword [0x5e6c18]
fnstsw ax
test ah, 5
jp 0x49782e
fld dword [esp + 0xc]
fmul dword [0x5e1158]
fsubr dword [0x5f53f4]
fst dword [esp + 0x10]
fld dword [esi + 0xec]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x41
jp 0x497758
fld dword [esi + 0xe8]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x41
jp 0x497758
mov edx, dword [ebp]
fstp st(0)
mov ecx, ebp
call dword [edx + 0x2c]
test eax, eax
je 0x497754
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
test eax, eax
je 0x497754
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x5c]
cmp eax, 1
jne 0x497754
fld dword [esp + 0x10]
fmul dword [0x5e8b9c]
jmp 0x497758
fld dword [esp + 0x10]
fcom dword [0x5f53f4]
fnstsw ax
test ah, 0x41
jne 0x49776d
fstp st(0)
fld dword [0x5f53f4]
fmul dword [0x5da710]
push ecx
fstp dword [esp]
call fcn.004beac0
fld dword [esp + 0x38]
fcomp dword [0x60477c]
add esp, 4
fnstsw ax
test ah, 0x44
jp 0x4977cc
fld dword [esp + 0x38]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4977cc
fld dword [esp + 0x3c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4977cc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x4977f8
fld dword [esp + 0x18]
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x54]
fstp st(0)
fld dword [esp + 0x4c]
fmul st(1)
fld dword [esp + 0x50]
fmul st(2)
fld dword [esp + 0x54]
fmul st(3)
fstp dword [esp + 0x6c]
fxch st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fstp st(0)
fld dword [esp + 0x6c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4975d8
inc edi
cmp edi, 3
jb 0x4975c0
xor edi, edi
mov dword [esp + 0x14], edi
push ebx
lea ebx, [ebx]
mov ecx, dword [0x6800e0]
push 0
push edi
call fcn.004cd340
mov esi, eax
test esi, esi
je 0x497ab4
cmp esi, ebp
je 0x497aa5
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x80]
mov edx, dword [ecx + 0x44]
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x497891
test eax, eax
je 0x497891
cmp eax, 8
jne 0x497aa5
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 0x5c]
test eax, eax
je 0x4978b5
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 0x80]
mov eax, dword [edx + 0x44]
cmp dword [eax + 0x24], 8
jne 0x497aa5
mov ecx, dword [esi + 0x30]
call fcn.004d17f0
fld dword [eax + 0x9c]
add eax, 0x90
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x30]
fmul dword [0x5dfea4]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x164]
test eax, eax
fstp dword [esp + 0x10]
mov dword [esp + 0x6c], edx
jne 0x49790f
add ecx, 0x108
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], ecx
jmp 0x497919
lea edx, [esp + 0x2c]
push edx
call fcn.004d2520
fld dword [esp + 0x68]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x6c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x70]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x2c]
fst dword [esp + 0x5c]
mov edi, dword [esp + 0x5c]
fld dword [esp + 0x48]
mov dword [esp + 0x38], edi
fsub dword [esp + 0x30]
fstp dword [esp + 0x60]
fld dword [esp + 0x4c]
mov eax, dword [esp + 0x60]
fsub dword [esp + 0x34]
mov dword [esp + 0x3c], eax
fstp dword [esp + 0x64]
mov ebx, dword [esp + 0x64]
fcomp dword [esp + 0x10]
mov dword [esp + 0x40], ebx
fnstsw ax
test ah, 0x41
je 0x497aa5
fld dword [esp + 0x64]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x497aa5
fld dword [esp + 0x60]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x497aa5
fld dword [esp + 0x40]
mov dword [esp + 0x3c], 0
fmul dword [esp + 0x40]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fst dword [esp + 0x14]
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
fcom dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x497aa1
fxch st(1)
push ecx
fdiv st(1)
fsubr dword [0x5f53f4]
fmul dword [0x5da710]
fstp dword [esp]
fstp st(0)
call fcn.004beac0
fmul dword [0x5da6f0]
fld dword [esp + 0x3c]
add esp, 4
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x497a3b
fld dword [esp + 0x40]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x497a3b
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
jmp 0x497a69
fld dword [esp + 0x14]
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [0x60477c]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x58]
fstp st(0)
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x54]
fmul st(2)
fld dword [esp + 0x58]
fmul st(3)
fstp dword [esp + 0x7c]
fxch st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esp + 0x7c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
jmp 0x497aa5
fstp st(0)
fstp st(0)
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x497868
mov edi, dword [esp + 0x18]
inc edi
cmp edi, 3
mov dword [esp + 0x18], edi
jb 0x497850
fld dword [esp + 0x24]
mov edx, dword [esp + 0x88]
fmul dword [esp + 0x24]
pop ebx
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fsqrt
fld st(0)
fstp dword [edx]
fld dword [esp + 0x1c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x497b2d
fld dword [esp + 0x20]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x497b2d
fld dword [esp + 0x24]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x497b2d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x497b5d
fdivr dword [0x5f53f4]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x24]
mov eax, dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x80]
fstp st(0)
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
add esp, 0x70
ret 8