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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1b4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jne 0x606500
cmp dword [esi + 0x1b8], edi
je 0x606c48
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed530
cmp eax, edi
je 0x606c48
mov ecx, dword [eax + 0xbc]
mov edx, dword [eax + 0xb8]
cmp dword [esi + 0x1bc], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jne 0x606545
mov eax, dword [esi + 0x1b4]
mov dword [esp + 8], eax
mov dword [esi + 0x1bc], 1
cmp dword [esi + 0x1b4], edi
je 0x6067d8
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x606625
mov dword [0x78e6a0], 0x3d4ccccd
movzx ecx, byte [esi + 0xb4]
mov dword [esp + 8], ecx
lea edx, [esi + 0x14c]
fild dword [esp + 8]
fmul dword [0x73dfec]
fstp dword [0x78e408]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea eax, [esi + 0x158]
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 0x164]
mov dword [esp + 0x50], edx
mov edx, dword [ecx]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x94]
mov dword [esp + 0x44], eax
cmp dword [esi + 0x188], edi
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x90]
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1b4], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], edx
je 0x60661a
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed540
cmp eax, edi
je 0x60661a
push 1
mov ecx, eax
call fcn.00614aa0
mov dword [esi + 0xa4], edi
jmp 0x606a76
fld dword [esp + 0x18]
fdiv dword [esp + 0x1c]
fld dword [0x7415bc]
fmul st(1)
fstp dword [0x78e6a0]
fld dword [esi + 0x14c]
fsub dword [esi + 0x128]
fld dword [esi + 0x150]
fsub dword [esi + 0x12c]
fld dword [esi + 0x154]
fsub dword [esi + 0x130]
fstp dword [esp + 0x60]
fld dword [esi + 0x158]
fsub dword [esi + 0x134]
fstp dword [esp + 0x38]
fld dword [esi + 0x15c]
fsub dword [esi + 0x138]
fstp dword [esp + 0x3c]
fld dword [esi + 0x160]
fsub dword [esi + 0x13c]
fstp dword [esp + 0x40]
fld dword [esi + 0x164]
fsub dword [esi + 0x140]
fstp dword [esp + 0xc]
fld dword [esi + 0x168]
fsub dword [esi + 0x144]
fstp dword [esp + 0x10]
fld dword [esi + 0x16c]
fsub dword [esi + 0x148]
fstp dword [esp + 0x14]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x60]
fmul st(2)
fld dword [esp + 0x64]
fadd dword [esi + 0x128]
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
fxch st(1)
mov dword [esp + 0x2c], edx
fadd dword [esi + 0x12c]
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
fadd dword [esi + 0x130]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x60]
fld dword [esp + 0x38]
mov ecx, dword [esp + 0x60]
fmul st(1)
mov dword [esp + 0x34], ecx
fld dword [esp + 0x3c]
fmul st(2)
fld dword [esp + 0x40]
fmul st(3)
fstp dword [esp + 0x6c]
fxch st(1)
fadd dword [esi + 0x134]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
fadd dword [esi + 0x138]
fstp dword [esp + 0x3c]
fld dword [esp + 0x6c]
fadd dword [esi + 0x13c]
fstp dword [esp + 0x40]
fld dword [esp + 0xc]
mov eax, dword [esp + 0x3c]
fmul st(1)
mov ecx, dword [esp + 0x40]
fld dword [esp + 0x10]
mov dword [esp + 0x50], eax
fmul st(2)
mov dword [esp + 0x54], ecx
fld dword [esp + 0x14]
fmul st(3)
fstp dword [esp + 0x6c]
fxch st(1)
fadd dword [esi + 0x140]
fstp dword [esp + 0xc]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x20], edx
fadd dword [esi + 0x144]
fstp dword [esp + 0x10]
fld dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
fadd dword [esi + 0x148]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x14]
fld dword [esi + 0x90]
mov ecx, dword [esp + 0x14]
fsub dword [esi + 0x74]
mov dword [esp + 0x28], ecx
fmul st(1)
fadd dword [esi + 0x74]
fstp dword [esp + 0x48]
fld dword [esi + 0x94]
fsub dword [esi + 0x78]
fmul st(1)
fadd dword [esi + 0x78]
jmp 0x606a70
cmp dword [esi + 0x1b8], edi
je 0x606a76
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x6068b6
mov dword [0x78e6a0], 0
movzx edx, byte [esi + 0xb4]
mov dword [esp + 8], edx
lea eax, [esi + 0x128]
fild dword [esp + 8]
fmul dword [0x73dfec]
fstp dword [0x78e408]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
lea ecx, [esi + 0x134]
mov edx, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
lea edx, [esi + 0x140]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x48], eax
cmp dword [esi + 0x188], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1b8], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], ecx
je 0x6068a7
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed540
cmp eax, edi
je 0x6068a7
push 1
mov ecx, eax
call fcn.00614aa0
mov dword [esi + 0xa4], 1
jmp 0x606a76
fld dword [esp + 0x18]
fdiv dword [esp + 0x1c]
fld dword [0x7415bc]
fmul st(1)
fsubr dword [0x7415bc]
fstp dword [0x78e6a0]
fld dword [esi + 0x128]
fsub dword [esi + 0x14c]
fld dword [esi + 0x12c]
fsub dword [esi + 0x150]
fld dword [esi + 0x130]
fsub dword [esi + 0x154]
fstp dword [esp + 0x6c]
fld dword [esi + 0x134]
fsub dword [esi + 0x158]
fstp dword [esp + 0x38]
fld dword [esi + 0x138]
fsub dword [esi + 0x15c]
fstp dword [esp + 0x3c]
fld dword [esi + 0x13c]
fsub dword [esi + 0x160]
fstp dword [esp + 0x40]
fld dword [esi + 0x140]
fsub dword [esi + 0x164]
fstp dword [esp + 0x58]
fld dword [esi + 0x144]
fsub dword [esi + 0x168]
fstp dword [esp + 0x5c]
fld dword [esi + 0x148]
fsub dword [esi + 0x16c]
fstp dword [esp + 0x60]
fxch st(1)
fmul st(2)
fstp dword [esp + 0xc]
fmul st(1)
fld dword [esp + 0x6c]
fmul st(2)
fld dword [esp + 0xc]
fadd dword [esi + 0x14c]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fxch st(1)
mov dword [esp + 0x2c], eax
fadd dword [esi + 0x150]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fadd dword [esi + 0x154]
mov dword [esp + 0x30], ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x38]
mov edx, dword [esp + 0x14]
fmul st(1)
mov dword [esp + 0x34], edx
fld dword [esp + 0x3c]
fmul st(2)
fld dword [esp + 0x40]
fmul st(3)
fstp dword [esp + 0x6c]
fxch st(1)
fadd dword [esi + 0x158]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fadd dword [esi + 0x15c]
fstp dword [esp + 0x10]
fld dword [esp + 0x6c]
fadd dword [esi + 0x160]
fstp dword [esp + 0x14]
fld dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
fmul st(1)
mov edx, dword [esp + 0x14]
fld dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
fmul st(2)
mov dword [esp + 0x50], ecx
fld dword [esp + 0x60]
mov dword [esp + 0x54], edx
fmul st(3)
fstp dword [esp + 0x6c]
fxch st(1)
fadd dword [esi + 0x164]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
fadd dword [esi + 0x168]
fstp dword [esp + 0x10]
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
fadd dword [esi + 0x16c]
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x14]
fld dword [esi + 0x74]
mov edx, dword [esp + 0x14]
fsub dword [esi + 0x90]
mov dword [esp + 0x28], edx
fmul st(1)
fadd dword [esi + 0x90]
fstp dword [esp + 0x48]
fld dword [esi + 0x78]
fsub dword [esi + 0x94]
fmul st(1)
fadd dword [esi + 0x94]
fstp dword [esp + 0x44]
fstp st(0)
fld dword [esp + 0x1c]
fmul dword [0x73e9ac]
fstp dword [esp + 8]
fld dword [esp + 0x18]
fcomp dword [esp + 8]
fnstsw ax
test ah, 1
jne 0x606ae5
cmp dword [esi + 0x1c0], edi
je 0x606ae5
cmp dword [esi + 0x1b8], edi
je 0x606aaf
mov dword [esi + 0xa4], 1
jmp 0x606abd
cmp dword [esi + 0x1b4], edi
je 0x606abd
mov dword [esi + 0xa4], edi
cmp dword [esi + 0x188], edi
je 0x606adf
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed540
cmp eax, edi
je 0x606adf
push 1
mov ecx, eax
call fcn.00614aa0
mov dword [esi + 0x1c0], edi
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x606b56
cmp dword [esi + 0x1c0], edi
je 0x606b2b
movzx ecx, byte [esi + 0xb4]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fmul dword [0x73dfec]
fld dword [esp + 0x18]
fdiv dword [esp + 8]
fld st(1)
fchs
fmulp st(1)
fadd st(1)
fstp dword [0x78e408]
fstp st(0)
jmp 0x606b56
fld dword [esp + 0x18]
movzx edx, byte [esi + 0xb4]
fdiv dword [esp + 8]
mov dword [esp + 8], edx
fsub dword [0x73d764]
fild dword [esp + 8]
fmul dword [0x73dfec]
fmulp st(1)
fstp dword [0x78e408]
fld dword [esp + 0x34]
sub esp, 0x18
fstp qword [esp + 0x10]
lea eax, [esp + 0x88]
fld dword [esp + 0x48]
fstp qword [esp + 8]
fld dword [esp + 0x44]
fstp qword [esp]
push str.sun_gidy_sun_amb_color__f__f__f
push eax
call fcn.006fadb0
lea ecx, [esp + 0x90]
push ecx
call fcn.0044b900
fld dword [esp + 0x78]
add esp, 0xc
fstp qword [esp + 0x10]
lea edx, [esp + 0x88]
fld dword [esp + 0x68]
fstp qword [esp + 8]
fld dword [esp + 0x64]
fstp qword [esp]
push str.sun_gidy_sun_diff_color__f__f__f
push edx
call fcn.006fadb0
lea eax, [esp + 0x90]
push eax
call fcn.0044b900
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
add esp, 0x24
mov dword [esi + 0x60], ecx
mov ecx, dword [esi + 0x184]
mov dword [esi + 0x64], edx
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x4c]
push edx
call dword [eax + 0x44]
mov ecx, dword [esi + 0x184]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
call dword [eax + 8]
fld dword [esp + 0x28]
sub esp, 0x18
fstp qword [esp + 0x10]
lea eax, [esp + 0x88]
fld dword [esp + 0x3c]
fstp qword [esp + 8]
fld dword [esp + 0x38]
fstp qword [esp]
push str._f__f__f
push eax
call fcn.006fadb0
lea ecx, [esp + 0x90]
push ecx
call fcn.00401690
add esp, 0x24
mov ecx, esi
call fcn.00605b10
mov ecx, dword [esi + 0x1dc]
call fcn.0068d690
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4