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

Disassembly:
sub esp, 0x6c
lea eax, [ecx + 0xa8]
mov dword [esp + 0xc], ecx
fld dword [0x6e26d0]
mov ecx, dword [eax]
push ebx
mov dword [esp + 0x30], ecx
push ebp
mov edx, dword [eax + 4]
push esi
mov dword [esp + 0x3c], edx
push edi
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x48], edx
call fcn.00674278
cdq
fld dword [0x6e26d8]
and edx, 3
add eax, edx
sar eax, 2
cdq
and edx, 7
add eax, edx
mov ebx, eax
sar ebx, 3
mov ebp, ebx
call fcn.00674278
fld dword [0x6e26f4]
fmul dword [0x6a36f0]
cdq
fsin
and edx, 3
lea esi, [esp + 0x54]
add eax, edx
sar eax, 2
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
mov dword [esp + 0x30], edi
fstp dword [esp + 0x10]
fld dword [0x6e2700]
fld dword [0x6e26f8]
fmul st(1)
fmul dword [esp + 0x10]
fld st(0)
fchs
fst dword [esp + 0x18]
fstp dword [esp + 0x4c]
fld st(1)
fmul dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 4
mov dword [esp + 0x70], eax
fst dword [esp + 0x14]
fst dword [esp + 0x50]
fld st(2)
fstp dword [esp + 0x54]
fld st(1)
fstp dword [esp + 0x58]
fstp dword [esp + 0x5c]
fld st(1)
fstp dword [esp + 0x60]
fstp dword [esp + 0x64]
fld dword [esp + 0x14]
fchs
fst dword [esp + 0x68]
fld st(1)
fstp dword [esp + 0x6c]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
mov al, byte [0x81a24c]
test al, 1
jne 0x59c925
mov dl, al
push fcn.004465e0
or dl, 1
mov byte [0x81a24c], dl
call fcn.00673ac4
add esp, 4
fld dword [0x6e277c]
fmul dword [esi]
fld dword [0x6e276c]
fmul dword [esi - 4]
add esi, 0xc
faddp st(1)
fld dword [0x6e275c]
fmul dword [esi - 0x14]
faddp st(1)
fadd dword [0x6e278c]
fstp dword [0x81a250]
fld dword [0x6e2770]
fmul dword [esi - 0x10]
fld dword [0x6e2780]
fmul dword [esi - 0xc]
mov ecx, dword [0x81a250]
mov dword [esp + 0x20], ecx
faddp st(1)
fld dword [0x6e2760]
fmul dword [esi - 0x14]
faddp st(1)
fadd dword [0x6e2790]
fstp dword [0x81a254]
fld dword [0x6e2774]
fmul dword [esi - 0x10]
fld dword [0x6e2764]
fmul dword [esi - 0x14]
mov edx, dword [0x81a254]
mov dword [esp + 0x24], edx
faddp st(1)
fld dword [0x6e2784]
fmul dword [esi - 0xc]
mov dword [esi - 0x14], ecx
mov dword [esi - 0x10], edx
faddp st(1)
fadd dword [0x6e2794]
fstp dword [0x81a258]
mov eax, dword [0x81a258]
mov dword [esp + 0x28], eax
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x59c904
lea ecx, [esp + 0x54]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
fld dword [edx - 8]
call fcn.00674278
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x10]
sar esi, 3
fld dword [eax]
call fcn.00674278
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp esi, ebp
jge 0x59ca30
mov ebp, esi
cmp esi, ebx
jle 0x59ca36
mov ebx, esi
cmp eax, dword [esp + 0x30]
jge 0x59ca40
mov dword [esp + 0x30], eax
cmp eax, edi
jle 0x59ca46
mov edi, eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x59c9ed
mov ecx, dword [esp + 0x1c]
or edx, 0xffffffff
or esi, 0xffffffff
mov eax, dword [ecx + 0x98]
sub edx, eax
add ebp, edx
mov edx, 1
sub edx, eax
mov eax, dword [ecx + 0x9c]
add ebx, edx
mov edx, dword [esp + 0x30]
sub esi, eax
add edx, esi
mov esi, 1
sub esi, eax
add edi, esi
test ebp, ebp
jge 0x59ca96
xor ebp, ebp
mov eax, dword [ecx + 0xb8]
cmp ebp, eax
jl 0x59caa3
lea ebp, [eax - 1]
test ebx, ebx
jge 0x59caa9
xor ebx, ebx
cmp ebx, eax
jl 0x59cab0
lea ebx, [eax - 1]
test edx, edx
jge 0x59cac0
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x30]
cmp edx, eax
jl 0x59cacb
lea edx, [eax - 1]
mov dword [esp + 0x30], edx
test edi, edi
jge 0x59cad1
xor edi, edi
cmp edi, eax
jl 0x59cad8
lea edi, [eax - 1]
lea esi, [ecx + 0xa8]
mov eax, esi
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
call fcn.0059cb20
test al, al
jne 0x59cb0e
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.user32.dll_EqualRect]
test eax, eax
je 0x59cb0e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6c
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x6c
ret