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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x5c], esi
mov dword [esi + 0x308], 1
call fcn.00428ac0
fild dword [esi + 0x4c]
mov dword [esp + 0x10], eax
xor ebp, ebp
mov dword [esp + 0x24], ebp
fmul qword [0x787518]
fsubr qword [0x785708]
fld qword [0x790c68]
fsub qword [str.333333]
fmulp st(1)
fadd qword [str.333333]
fstp qword [esp + 0x68]
fild dword [esp + 0x10]
fst qword [esp + 0xa8]
fmul qword [0x790c70]
fmul qword [esp + 0x68]
call fcn.0076a6b0
mov ecx, 0x81a800
mov dword [esp + 0x9c], eax
call fcn.005571f0
mov ecx, 0x81a800
call fcn.00557130
cmp eax, ebp
je 0x579754
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x10], ecx
movsx eax, word [esp + 0x12]
imul eax, dword [0x836b2c]
movsx ecx, cx
add eax, ecx
mov ecx, 0x81a800
lea edx, [eax + eax*4]
mov eax, dword [0xa5861c]
shl edx, 4
mov dword [edx + eax + 0x3c], ebp
call fcn.00557130
cmp eax, ebp
jne 0x57971f
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
fild qword [esp + 0x40]
mov esi, dword [0x81a8f8]
mov edi, dword [0x81a8fc]
fmul qword [0x790db8]
fcomp qword [0x785728]
fnstsw ax
test ah, 1
je 0x5797d4
mov eax, dword [0x81a900]
mov dword [esp + 0x78], esi
cdq
sub eax, edx
mov edx, dword [0x81a904]
sar eax, 1
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edx
lea ecx, [eax - 1]
lea eax, [eax + esi + 1]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
jmp 0x57981d
mov eax, dword [0x81a904]
mov ebx, dword [0x81a900]
cdq
sub eax, edx
mov dword [esp + 0x78], esi
sar eax, 1
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], ebx
lea ecx, [eax - 1]
lea eax, [eax + edi + 1]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], 2
mov dword [esp + 0x2c], ecx
jmp 0x579831
xor ebp, ebp
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov esi, dword [edx]
mov dword [esp + 0x30], esi
mov edi, dword [edx + 4]
mov dword [esp + 0x34], edi
mov ebx, dword [edx + 8]
mov eax, ebx
mov dword [esp + 0x38], ebx
mov ebp, dword [edx + 0xc]
cdq
sub eax, edx
mov dword [esp + 0x3c], ebp
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
lea edx, [eax + ecx]
sub eax, ecx
add edx, esi
sub eax, esi
mov esi, dword [0x81a8f0]
add eax, esi
lea edx, [edx + edi + 1]
add eax, edi
cmp ebp, ebx
mov esi, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], esi
jle 0x5798d5
fild dword [esp + 0x3c]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0x3ff00000
fstp qword [esp + 0x18]
fild dword [esp + 0x38]
fld qword [esp + 0x18]
fdiv st(1)
fmul qword [0x788da8]
fstp qword [esp + 0x40]
jmp 0x579904
fild dword [esp + 0x38]
fild dword [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3ff00000
fstp qword [esp + 0x18]
fld st(0)
fdiv qword [esp + 0x18]
fmul qword [0x788da8]
fstp qword [esp + 0xa0]
fmul qword [0x785728]
fld st(0)
fmul st(1)
fdivr qword [0x785708]
fstp qword [esp + 0xc0]
fstp st(0)
fld qword [esp + 0x18]
fmul qword [0x785728]
fld st(0)
fmul st(1)
fdivr qword [0x785708]
fstp qword [esp + 0xb8]
fstp st(0)
fld qword [0x786610]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
je 0x579b3d
cmp dword [esp + 0x24], 0x64
jge 0x579b3d
fld qword [esp + 0x68]
fsub qword [esp + 0x70]
fmul qword [esp + 0xa8]
call fcn.0076a6b0
mov ecx, dword [esp + 0x9c]
cmp eax, ecx
jl 0x57997b
mov eax, ecx
mov cx, word [esp + 0x50]
push 1
xor edi, edi
push 0x3fe80000
lea edx, [esp + 0x54]
mov word [esp + 0x54], cx
push edi
push edx
lea ecx, [esp + 0x70]
push 1
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
mov word [esp + 0x6e], si
call fcn.0057a050
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add ebx, eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
mov ebx, dword [0x81a8f0]
fild dword [esp + 0x20]
mov eax, dword [0x836b2c]
mov word [esp + 0x14], di
mov word [esp + 0x16], di
lea edi, [ecx + ecx]
fdiv qword [esp + 0xa8]
imul eax, eax
inc edx
sub edi, ebx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
inc edi
mov ebp, 0xc350
test eax, eax
lea ecx, [edi + edx*2 + 2]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x3c]
lea ebx, [ebx + edx*2 + 1]
lea edx, [ebx + ecx*2 + 2]
mov dword [esp + 0xb4], edx
fstp qword [esp + 0x70]
jle 0x579b18
mov dword [esp + 0x28], 0
mov dword [esp + 0x58], eax
mov eax, dword [0xa5861c]
mov ecx, dword [esp + 0x28]
lea esi, [ecx + eax]
movsx ecx, word [ecx + eax + 2]
movsx eax, word [esi]
lea edx, [eax + ecx]
sub eax, ecx
cmp edx, ebx
jl 0x579afa
cmp edx, dword [esp + 0xb4]
jg 0x579afa
cmp eax, edi
jl 0x579afa
cmp eax, dword [esp + 0x98]
jg 0x579afa
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x579afa
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xc4]
push eax
push ecx
mov ecx, dword [esp + 0x68]
push edx
lea eax, [esp + 0x40]
push 1
push eax
push esi
call fcn.00579f40
test al, al
je 0x579afa
movsx eax, word [esi + 2]
sub eax, dword [esp + 0x54]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
movsx eax, word [esi]
fild dword [esp + 0x18]
sub eax, edx
fmul qword [esp + 0xa0]
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [esp + 0x40]
faddp st(1)
call fcn.0076a6b0
cmp eax, ebp
jge 0x579afa
mov ecx, dword [esi]
mov ebp, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
add ecx, 0x50
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], eax
jne 0x579a32
mov esi, dword [esp + 0x54]
fld qword [esp + 0x70]
movsx eax, word [esp + 0x14]
fcomp qword [esp + 0x68]
movsx ecx, word [esp + 0x16]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
fnstsw ax
test ah, 1
jne 0x57994f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add ecx, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], eax
jne 0x57982f
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret