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

Disassembly:
sub esp, 0x458
push ebp
push esi
mov esi, dword [esp + 0x464]
mov ebp, ecx
test esi, esi
mov dword [esp + 0x58], 0
jne 0x52801e
fld dword [0x60477c]
pop esi
pop ebp
add esp, 0x458
ret 0x24
push ebx
push edi
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x484]
test eax, eax
je 0x528050
push esi
mov ecx, ebp
call fcn.005273a0
movsx eax, ax
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
jmp 0x528062
movsx edx, word [ebp + 0x18]
mov ecx, dword [ebp]
mov dword [esp + 0x3c], edx
fld dword [ecx + 0x24]
fimul dword [esp + 0x3c]
mov eax, dword [esp + 0x47c]
mov ecx, dword [ebp]
fstp dword [esp + 0x30]
test eax, eax
je 0x528078
push 3
jmp 0x52807a
push 1
call fcn.0052b280
mov edx, dword [esp + 0x470]
mov dword [esp + 0x3c], eax
test edx, edx
jne 0x5280bc
mov eax, dword [0x68b18c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], edx
fild dword [eax + 0x41a38]
fst dword [esp + 0x48]
fild dword [eax + 0x41a3c]
fst dword [esp + 0x50]
fstp dword [esp + 0x54]
fstp dword [esp + 0x4c]
jmp 0x528153
mov eax, dword [edx + 4]
cmp eax, 0x7fffffff
mov dword [esp + 0x28], eax
jne 0x5280d4
mov dword [esp + 0x40], 0
jmp 0x5280dc
fild dword [esp + 0x28]
fstp dword [esp + 0x40]
mov eax, dword [edx]
cmp eax, 0x7fffffff
mov dword [esp + 0x28], eax
jne 0x5280f3
mov dword [esp + 0x34], 0
jmp 0x5280fb
fild dword [esp + 0x28]
fstp dword [esp + 0x34]
mov eax, dword [edx + 0xc]
mov ecx, dword [0x68b18c]
cmp eax, 0x7fffffff
jne 0x528111
mov eax, dword [ecx + 0x41a3c]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 8]
fild dword [esp + 0x10]
cmp eax, 0x7fffffff
fstp dword [esp + 0x54]
jne 0x528133
mov ecx, dword [ecx + 0x41a38]
mov dword [esp + 0x10], ecx
jmp 0x528137
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fst dword [esp + 0x4c]
fsub dword [esp + 0x34]
fstp dword [esp + 0x48]
fld dword [esp + 0x54]
fsub dword [esp + 0x40]
fstp dword [esp + 0x50]
mov ax, word [esi]
test ax, ax
je 0x528183
push eax
mov ecx, ebp
call fcn.00527520
fcomp dword [esp + 0x48]
fnstsw ax
and eax, 0x4100
jne 0x528183
fld dword [0x60477c]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x458
ret 0x24
mov al, byte [esp + 0x478]
xor edi, edi
test al, 8
mov dword [esp + 0x38], edi
mov ebx, 0x32
je 0x5281ac
fld dword [esp + 0x50]
fdiv dword [esp + 0x30]
call fcn.0058c3f0
mov ebx, eax
test ebx, ebx
je 0x528170
cmp word [esi], 0
je 0x52830b
cmp edi, ebx
jge 0x52830b
cmp word [esi], 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
jne 0x5281dd
add esi, 2
cmp word [esi], 0x20
je 0x5281d4
lea eax, [esp + edi*4 + 0x2d8]
mov dword [esp + edi*4 + 0x3a0], esi
mov dword [esp + 0x24], eax
mov dword [esp + edi*4 + 0x80], 0
mov dword [eax], esi
lea eax, [esp + edi*4 + 0x3a0]
mov dword [esp + 0x20], eax
lea eax, [esp + edi*4 + 0x80]
mov dword [esp + 0x10], eax
lea eax, [esp + edi*4 + 0x210]
lea edi, [esp + edi*4 + 0x148]
mov dword [esp + 0x44], eax
mov dword [eax], 0
mov ax, word [esi]
mov dword [esp + 0x28], edi
mov dword [edi], 0
mov edi, 3
test ax, ax
je 0x5282df
cmp ax, 0xa
je 0x5282bb
mov dx, word [esi + 2]
mov ecx, ebp
push edx
push eax
xor edi, edi
call fcn.00527630
fld dword [esp + 0x1c]
cmp word [esi], 0x20
fadd st(1)
fstp dword [esp + 0x1c]
je 0x528274
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
jmp 0x528276
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [esp + 0x48]
fnstsw ax
and eax, 0x100
je 0x5282df
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x20
je 0x528299
test ax, ax
jne 0x528245
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [ecx], esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov dword [ecx], edx
mov ecx, dword [esp + 0x28]
inc dword [ecx]
jmp 0x52823c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esi, 2
mov dword [ecx], edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov edi, 1
mov dword [eax], esi
mov dword [ecx], edx
jmp 0x5282e3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x5282f4
cmp edi, 1
je 0x5282f4
mov dword [eax], esi
mov esi, dword [eax]
mov ecx, dword [esp + 0x38]
inc ecx
cmp word [esi], 0
mov dword [esp + 0x38], ecx
mov edi, ecx
jne 0x5281b6
mov eax, dword [esp + 0x488]
test eax, eax
je 0x528322
mov dx, word [esi]
neg dx
sbb edx, edx
and edx, esi
mov dword [eax], edx
mov eax, dword [ebp]
mov edx, dword [0x68009c]
mov ebx, dword [esp + 0x480]
xor esi, esi
mov ecx, dword [eax + 0x40]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cx, word [ebp + 0x2c]
xor edx, edx
div ecx
shr ecx, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
cmp edx, ecx
sbb eax, eax
neg eax
cmp edi, esi
mov dword [ebp + 0x30], eax
jle 0x52870e
mov edx, dword [esp + 0x474]
mov eax, edx
and eax, 3
mov dword [esp + 0x68], eax
mov eax, edx
and eax, 0x10
mov dword [esp + 0x74], eax
lea eax, [edi - 1]
mov dword [esp + 0x10], eax
jmp 0x528394
mov edx, dword [esp + 0x474]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], 0
cmp eax, 3
mov eax, dword [esp + 0x1c]
jne 0x5283d7
mov ecx, dword [esp + 0x38]
dec ecx
cmp eax, ecx
jge 0x5283d7
fld dword [esp + 0x4c]
fsub dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], 1
mov dword [esp + 0x14], ecx
fsub dword [esp + eax*4 + 0x210]
fstp dword [esp + 0x20]
jmp 0x528411
test dl, 1
je 0x5283e6
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
jmp 0x528411
test dl, 2
je 0x5283f8
fld dword [esp + 0x4c]
fsub dword [esp + eax*4 + 0x80]
jmp 0x52840d
fld dword [esp + 0x48]
fsub dword [esp + eax*4 + 0x80]
fmul dword [0x5da2f8]
fadd dword [esp + 0x34]
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x52842c
inc eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [esp + 0x30]
fadd dword [esp + 0x40]
jmp 0x528464
test dl, 0x20
je 0x52843f
fild dword [esp + 0x10]
fmul dword [esp + 0x30]
fsubr dword [esp + 0x54]
jmp 0x528464
fild dword [esp + 0x38]
inc eax
mov dword [esp + 0x24], eax
fmul dword [esp + 0x30]
fsubr dword [esp + 0x50]
fmul dword [0x5da2f8]
fild dword [esp + 0x24]
fmul dword [esp + 0x30]
faddp st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], edx
mov ecx, dword [esp + eax*4 + 0x148]
mov ebx, dword [esp + eax*4 + 0x2d8]
dec ecx
lea eax, [esp + eax*4 + 0x3a0]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax]
cmp ebx, ecx
je 0x52861c
mov dword [esp + 0x64], ecx
cmp word [ebx], 0xa
jne 0x5284b2
add ebx, 2
jmp 0x528612
mov eax, dword [esp + 0x48c]
test eax, eax
jl 0x528533
mov ecx, dword [esp + 0x60]
test ecx, ecx
jne 0x528533
cmp dword [esp + 0x2c], eax
jl 0x528533
mov edx, dword [ebp + 0x24]
xor esi, esi
mov dword [esp + 0x60], 1
mov eax, dword [edx]
mov si, word [eax + 0xbe]
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x528533
cmp esi, dword [ebp + 4]
jl 0x528533
cmp esi, dword [ebp + 8]
jg 0x528533
mov eax, dword [esp + 0x480]
test eax, eax
jne 0x528533
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x528512
mov ecx, dword [ebp]
push esi
call fcn.0052b160
movsx edi, ax
jmp 0x528514
xor edi, edi
fld dword [esp + 0x18]
call fcn.0058c3f0
fld dword [esp + 0x14]
push eax
call fcn.0058c3f0
mov ecx, dword [ebp]
sub eax, edi
push eax
push esi
call fcn.0052b7b0
mov ax, word [ebx]
cmp ax, 0x20
je 0x52855c
mov edx, dword [ebp + 0x24]
and eax, 0xffff
mov ecx, eax
and eax, 0xff
shr ecx, 8
xor esi, esi
mov ecx, dword [edx + ecx*4]
mov si, word [ecx + eax*2]
cmp esi, 0xffffffff
jne 0x5285a3
cmp dword [esp + 0x44], 1
jne 0x528598
mov eax, dword [esp + 0x24]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], eax
dec eax
fild qword [esp + 0x78]
mov dword [esp + 0x24], eax
fdivr dword [esp + 0x20]
fld dword [esp + 0x14]
fadd st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
jmp 0x528606
mov edx, dword [ebp]
fld dword [edx + 0x24]
fimul dword [ebp + 0xc]
jmp 0x5285fe
cmp esi, dword [ebp + 4]
jl 0x528606
cmp esi, dword [ebp + 8]
jg 0x528606
mov eax, dword [esp + 0x480]
test eax, eax
jne 0x5285ee
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x5285cd
mov ecx, dword [ebp]
push esi
call fcn.0052b160
movsx edi, ax
jmp 0x5285cf
xor edi, edi
fld dword [esp + 0x18]
call fcn.0058c3f0
fld dword [esp + 0x14]
push eax
call fcn.0058c3f0
mov ecx, dword [ebp]
sub eax, edi
push eax
push esi
call fcn.0052b7b0
mov ax, word [ebx + 2]
mov cx, word [ebx]
push eax
push ecx
mov ecx, ebp
call fcn.00527630
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add ebx, 2
inc eax
mov dword [esp + 0x2c], eax
cmp ebx, dword [esp + 0x64]
jne 0x5284a4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x480]
test eax, eax
mov dword [esp + 0x6c], edx
jne 0x5286e9
mov bl, byte [esp + 0x478]
test bl, 1
je 0x528699
mov eax, dword [esp + 0x28]
push 0
fld dword [esp + 0x18]
fsub dword [esp + 0x5c]
mov ecx, eax
push 1
shr ecx, 0x18
mov edx, eax
push ecx
push eax
shr edx, 8
shr eax, 0x10
push edx
push eax
push 2
call fcn.0058c3f0
fld dword [esp + 0x4c]
fmul dword [0x5e6c40]
push eax
fsubr dword [esp + 0x7c]
call fcn.0058c3f0
fld dword [esp + 0x78]
push eax
call fcn.0058c3f0
mov ecx, dword [0x6800cc]
push eax
call fcn.004dafa0
test bl, 2
je 0x5286e9
mov eax, dword [esp + 0x28]
push 0
fld dword [esp + 0x18]
fsub dword [esp + 0x5c]
mov ecx, eax
push 1
shr ecx, 0x18
mov edx, eax
push ecx
push eax
shr edx, 8
shr eax, 0x10
push edx
push eax
push 2
call fcn.0058c3f0
fld dword [esp + 0x78]
push eax
call fcn.0058c3f0
fld dword [esp + 0x78]
add eax, 2
push eax
call fcn.0058c3f0
mov ecx, dword [0x6800cc]
push eax
call fcn.004dafa0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jl 0x52838d
mov ebx, dword [esp + 0x480]
mov eax, dword [esp + 0x48c]
test eax, eax
jl 0x52877a
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x52877a
mov eax, dword [ebp + 0x24]
xor esi, esi
mov ecx, dword [eax]
mov eax, dword [ebp + 0x30]
test eax, eax
mov si, word [ecx + 0xbe]
je 0x52877a
cmp esi, dword [ebp + 4]
jl 0x52877a
cmp esi, dword [ebp + 8]
jg 0x52877a
test ebx, ebx
jne 0x52877a
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x528759
mov ecx, dword [ebp]
push esi
call fcn.0052b160
movsx edi, ax
jmp 0x52875b
xor edi, edi
fld dword [esp + 0x70]
call fcn.0058c3f0
fld dword [esp + 0x6c]
push eax
call fcn.0058c3f0
mov ecx, dword [ebp]
sub eax, edi
push eax
push esi
call fcn.0052b7b0
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp]
push edx
call fcn.0052b280
test ebx, ebx
je 0x5287ae
mov eax, dword [esp + 0x470]
fld dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
call fcn.0058c3f0
mov dword [ebx + 0xc], eax
fld dword [esp + 0x18]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x458
ret 0x24