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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x594
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x52830e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x52830e
mov eax, dword [0x6e6314]
test eax, eax
mov edi, ebx
mov ecx, 0x70
je 0x5277d9
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push esi
mov edi, ebx
call fcn.00526c20
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push ecx
push esi
add esi, 0x30
push esi
push ebx
call fcn.00526e40
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
test eax, eax
mov edi, dword [ebp + 0x10]
je 0x5277f0
mov eax, dword [eax + 0x40]
test eax, eax
je 0x5277f0
mov edi, eax
push esi
lea edx, [esp + 0x114]
push edx
call fcn.0059ff05
push edi
lea eax, [esp + 0x154]
push eax
mov dword [esp + 0x124], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
call fcn.0059ff05
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x568]
push eax
mov dword [esp + 0x168], 0
mov dword [esp + 0x178], 0
mov dword [esp + 0x188], 0
mov dword [esp + 0x198], 0
mov dword [esp + 0x18c], 0
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 0
call fcn.0059fcbc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5279a4
fld dword [eax]
lea ecx, [esp + 0x110]
fsub dword [esi + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
fstp dword [esp + 0x28]
mov dword [esp + 0x34], 0x3f800000
fld dword [eax + 4]
fsub dword [esi + 0x34]
fstp dword [esp + 0x2c]
fld dword [eax + 8]
lea eax, [esp + 0x28]
fsub dword [esi + 0x38]
push eax
fstp dword [esp + 0x34]
call fcn.0059fa63
lea ecx, [esp + 0x20]
push ecx
call fcn.00524850
fst dword [esp + 0x1c]
fcomp dword [0x6a8590]
add esp, 4
fnstsw ax
test ah, 5
jp 0x527934
mov edx, dword [0x6a8590]
mov dword [esp + 0x18], edx
jmp 0x52794e
fld dword [esp + 0x18]
fcomp dword [0x6a8594]
fnstsw ax
test ah, 0x41
jne 0x52794e
mov eax, dword [0x6a8594]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x34], 0
call fcn.00599f10
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0040b720
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov dword [ebx + 0xc0], eax
mov dword [ebx + 0xc4], ecx
mov dword [ebx + 0xc8], edx
mov dword [ebx + 0xcc], 0x3f800000
push fcn.00401020
push 0x13
push 0x10
lea eax, [esp + 0x2cc]
push eax
call fcn.004010d0
push fcn.00401020
push 0x13
push 0x10
lea ecx, [esp + 0x43c]
push ecx
call fcn.004010d0
push fcn.00401020
push 0x13
push 0x10
lea edx, [esp + 0x19c]
push edx
call fcn.004010d0
xor eax, eax
mov ecx, 0x4c
lea edi, [esp + 0x2c0]
rep stosd dword es:[edi], eax
mov ecx, 0x4c
lea edi, [esp + 0x430]
rep stosd dword es:[edi], eax
mov ecx, 0x4c
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
cmp dword [0x76c3f0], 3
mov dword [esp + 0x38], 0x6e6250
je 0x527a2b
mov dword [esp + 0x38], 0x6e62b0
mov eax, dword [0x6e6310]
test eax, eax
je 0x527a5e
lea eax, [esp + 0x560]
push eax
lea ecx, [esp + 0x3f4]
push ecx
call fcn.00401c70
mov eax, dword [esp + 0x40]
add eax, 0x14
add esp, 8
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x527b00
mov eax, dword [ebp + 0x14]
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0xf4]
fld dword [eax + 8]
mov eax, dword [esi + 0x30]
fstp dword [esp + 0xf8]
fld dword [esi + 0x34]
lea ecx, [esp + 0x20]
fstp dword [esp + 0x104]
fld dword [esi + 0x38]
mov dword [esp + 0x100], eax
fstp dword [esp + 0x108]
push ecx
lea eax, [esp + 0x104]
lea edi, [esp + 0xf4]
lea esi, [esp + 0x54]
mov dword [esp + 0xf4], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x3f800000
call fcn.0040a9c0
add esp, 4
lea eax, [esp + 0x50]
lea esi, [esp + 0x3f0]
call fcn.0040b010
mov eax, dword [esp + 0x38]
add eax, 0x14
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x527b00
mov eax, dword [esp + 0x18]
jmp 0x527b00
fld dword [0x6bde38]
push 0x3f800000
fsub dword [eax - 4]
sub esp, 8
lea esi, [esp + edi + 0x2cc]
fstp dword [esp + 4]
fld dword [eax - 8]
fadd dword [0x6bdd84]
fstp dword [esp]
call fcn.00526360
fld dword [esi]
add esp, 0xc
fld dword [esp + edi + 0x2c4]
lea ecx, [esp + 0x3f0]
fchs
push ecx
fstp dword [esi]
mov edx, dword [esi]
fld dword [esp + edi + 0x2cc]
mov dword [esp + 0x24], edx
fchs
lea edx, [esp + 0x24]
fstp dword [esp + edi + 0x2c8]
mov eax, dword [esp + edi + 0x2c8]
mov dword [esp + 0x28], eax
push edx
fst dword [esp + edi + 0x2d0]
lea eax, [esp + 0x28]
fstp dword [esp + 0x30]
push eax
mov dword [esp + 0x38], 0
call fcn.0059fa63
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + edi + 0x2c8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + edi + 0x2c4], edx
mov dword [esi], ecx
mov ecx, dword [eax]
mov dword [esp + edi + 0x190], ecx
mov edx, dword [eax]
mov dword [esp + edi + 0x194], edx
mov ecx, dword [eax]
mov dword [esp + edi + 0x198], ecx
mov dword [esp + edi + 0x19c], 0
add eax, 0xc
add edi, 0x10
cmp edi, 0x70
mov dword [esp + 0x18], eax
jl 0x527af2
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x50]
lea edi, [esi + 0x30]
push edx
mov eax, edi
call fcn.00525410
lea ecx, [eax + 8]
add esp, 4
cmp ecx, 0x13
mov dword [esp + 0x18], eax
jle 0x527c0e
mov dword [esp + 0x18], 0xb
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x3c], ecx
xor ecx, ecx
test eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
jle 0x527e0b
xor edi, edi
mov esi, dword [esp + ecx*4 + 0x50]
fld dword [esi + 0x10]
fsub dword [esp + 0x4c]
fstp dword [esp + edi + 0x330]
fld dword [esi + 0x14]
fsub dword [esp + 0x3c]
fstp dword [esp + edi + 0x334]
fld dword [esi + 0x18]
fsub dword [esp + 0x1c]
fstp dword [esp + edi + 0x338]
mov eax, dword [esi + 0xc]
mov edx, eax
and edx, 0xff
test edx, edx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jge 0x527c7d
fadd dword [0x6bdcac]
mov edx, eax
fstp dword [esp + 0x48]
shr edx, 8
and edx, 0xff
test edx, edx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jge 0x527c9e
fadd dword [0x6bdcac]
shr eax, 0x10
fstp dword [esp + 0x44]
and eax, 0xff
test eax, eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
jge 0x527cbc
fadd dword [0x6bdcac]
mov al, byte [esi + 4]
fstp dword [esp + 0x34]
cmp al, 3
je 0x527cfe
fld dword [esp + 0x48]
fmul dword [esp + ecx*4 + 0x78]
fmul dword [0x6a8588]
fstp dword [esp + edi + 0x200]
fld dword [esp + 0x44]
fmul dword [esp + ecx*4 + 0x78]
fmul dword [0x6a8588]
fstp dword [esp + edi + 0x204]
fld dword [esp + 0x34]
fmul dword [esp + ecx*4 + 0x78]
jmp 0x527dc4
fld dword [esi + 0x34]
fmul dword [0x6bdec0]
fadd dword [0x6bdde4]
call fcn.00666390
push eax
call fcn.00546ea0
fstp dword [esp + 0x44]
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x30]
add eax, 0x30
fsub dword [esi + 0x10]
lea ecx, [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [eax + 4]
fsub dword [esi + 0x14]
fstp dword [esp + 0x28]
fld dword [eax + 8]
lea eax, [esp + 0x24]
fsub dword [esi + 0x18]
push eax
push ecx
fstp dword [esp + 0x34]
call fcn.00599e10
fld dword [esp + 0x34]
add esp, 0xc
fmul dword [esi + 0x28]
fld dword [esp + 0x24]
fmul dword [esi + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esi + 0x20]
faddp st(1)
fcom dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x527d88
fsub dword [esp + 0x40]
fld dword [0x6bda18]
fsub dword [esp + 0x40]
fdivp st(1)
jmp 0x527d90
fstp st(0)
fld dword [0x6bda00]
mov edx, dword [esp + 0x38]
fmul dword [esp + edx*4 + 0x78]
mov ecx, edx
fld dword [esp + 0x48]
fmul st(1)
fmul dword [0x6a8588]
fstp dword [esp + edi + 0x200]
fld dword [esp + 0x44]
fmul st(1)
fmul dword [0x6a8588]
fstp dword [esp + edi + 0x204]
fmul dword [esp + 0x34]
fmul dword [0x6a8588]
mov eax, dword [esp + 0x18]
inc ecx
add edi, 0x10
cmp ecx, eax
fstp dword [esp + edi + 0x1f8]
mov dword [esp + 0x38], ecx
jl 0x527c32
test eax, eax
jle 0x527e0b
lea esi, [esp + 0x330]
mov edi, eax
lea eax, [esp + 0x110]
push eax
push esi
push esi
call fcn.0059f3cf
add esi, 0x10
dec edi
jne 0x527df2
mov eax, dword [esp + 0x18]
lea esi, [eax + 8]
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x527e42
xor edi, edi
jmp 0x527e20
lea ecx, [esp + edi + 0x2c0]
push ecx
lea edx, [esp + edi + 0x434]
push edx
call fcn.00599e10
add esp, 8
add edi, 0x10
dec esi
jne 0x527e20
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x58]
mov ecx, 0xa
xor edi, edi
lea ecx, [ecx]
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax - 4], edi
mov dword [eax - 8], edi
add eax, 0x10
dec ecx
jne 0x527e50
cmp esi, edi
jle 0x527f16
mov dword [esp + 0x34], esi
lea ecx, [ecx]
fld dword [esp + edi + 0x194]
mov eax, dword [esp + edi + 0x19c]
fld dword [esp + edi + 0x198]
lea esi, [esp + edi + 0x190]
fld dword [esi]
mov dword [esp + 0x1c], eax
fmul dword [0x6bdbc4]
lea ecx, [esp + edi + 0x430]
lea eax, [esp + 0x50]
fstp dword [esi]
fxch st(1)
fmul dword [0x6bdbc4]
fstp dword [esp + edi + 0x194]
fmul dword [0x6bdbc4]
fstp dword [esp + edi + 0x198]
fld dword [esp + 0x1c]
fmul dword [0x6bdbc4]
fstp dword [esp + edi + 0x19c]
fld dword [esp + edi + 0x194]
fmul dword [0x6bdeb8]
fld dword [esi]
fmul dword [0x6bdeb4]
faddp st(1)
fld dword [esp + edi + 0x198]
fmul dword [0x6bdebc]
faddp st(1)
fstp dword [esp + edi + 0x19c]
call fcn.00525bf0
mov eax, dword [esp + 0x34]
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x527e70
mov ecx, dword [0x6e6244]
mov edx, dword [0x6e6240]
mov eax, dword [0x6e623c]
push ecx
push edx
push eax
mov eax, dword [0x72a378]
lea ecx, [esp + 0x5c]
call fcn.00525fc0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x120], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ebx + 0x124], edx
mov edx, dword [esp + 0x60]
mov dword [ebx + 0x128], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x12c], ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x130], edx
mov edx, dword [esp + 0x6c]
mov dword [ebx + 0x134], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x138], ecx
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x13c], edx
mov edx, dword [esp + 0x78]
mov dword [ebx + 0x140], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x144], ecx
mov ecx, dword [esp + 0x80]
mov dword [ebx + 0x148], edx
mov edx, dword [esp + 0x84]
mov dword [ebx + 0x14c], eax
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x150], ecx
mov ecx, dword [esp + 0x8c]
mov dword [ebx + 0x154], edx
mov edx, dword [esp + 0x90]
mov dword [ebx + 0x158], eax
mov eax, dword [esp + 0x94]
mov dword [ebx + 0x15c], ecx
mov ecx, dword [esp + 0x98]
mov dword [ebx + 0x160], edx
mov edx, dword [esp + 0x9c]
mov dword [ebx + 0x164], eax
mov eax, dword [esp + 0xa0]
mov dword [ebx + 0x168], ecx
mov ecx, dword [esp + 0xa4]
mov dword [ebx + 0x16c], edx
mov edx, dword [esp + 0xa8]
mov dword [ebx + 0x170], eax
mov eax, dword [esp + 0xac]
mov dword [ebx + 0x174], ecx
mov ecx, dword [esp + 0xb0]
mov dword [ebx + 0x178], edx
mov edx, dword [esp + 0xb4]
mov dword [ebx + 0x17c], eax
mov eax, dword [esp + 0xb8]
mov dword [ebx + 0x180], ecx
mov ecx, dword [esp + 0xbc]
mov dword [ebx + 0x184], edx
mov edx, dword [esp + 0xc0]
mov dword [ebx + 0x188], eax
mov eax, dword [esp + 0xc4]
mov dword [ebx + 0x18c], ecx
mov ecx, dword [esp + 0xc8]
mov dword [ebx + 0x190], edx
mov edx, dword [esp + 0xcc]
mov dword [ebx + 0x194], eax
mov eax, dword [esp + 0xd0]
mov dword [ebx + 0x198], ecx
mov ecx, dword [esp + 0xd4]
mov dword [ebx + 0x19c], edx
mov edx, dword [esp + 0xd8]
mov dword [ebx + 0x1a0], eax
mov eax, dword [esp + 0xdc]
mov dword [ebx + 0x1a4], ecx
mov dword [ebx + 0x1a8], edx
mov dword [ebx + 0x1ac], eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov dword [ebx + 0x1b8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1b0], ecx
mov ecx, dword [esp + 0xec]
xor edi, edi
cmp eax, edi
mov dword [ebx + 0x1b4], edx
mov dword [ebx + 0x1bc], ecx
je 0x528162
cmp dword [ebp + 0x14], edi
je 0x528162
mov edx, dword [ebp + 0xc]
push eax
push edx
lea esi, [ebx + 0xe0]
push esi
call fcn.0059fcbc
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov eax, dword [ebx + 0xc0]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc4]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0xc8]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edi
fld dword [esp + 0x190]
mov eax, dword [esp + 0x430]
fmul dword [0x6bdbc8]
mov ecx, dword [esp + 0x434]
mov edx, dword [esp + 0x438]
mov dword [ebx + 0x40], eax
fstp dword [ebx]
mov eax, dword [esp + 0x440]
fld dword [esp + 0x194]
mov dword [ebx + 0x50], ecx
fmul dword [0x6bdbc8]
mov ecx, dword [esp + 0x444]
mov dword [ebx + 0x60], edx
mov edx, dword [esp + 0x448]
fstp dword [ebx + 4]
mov dword [ebx + 0x44], eax
fld dword [esp + 0x198]
mov eax, dword [esp + 0x450]
fmul dword [0x6bdbc8]
mov dword [ebx + 0x54], ecx
mov ecx, dword [esp + 0x454]
mov dword [ebx + 0x64], edx
fstp dword [ebx + 8]
mov edx, dword [esp + 0x458]
fld dword [esp + 0x1a0]
mov dword [ebx + 0x48], eax
fmul dword [0x6bdbc8]
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x68], edx
fstp dword [ebx + 0x10]
fld dword [esp + 0x1a4]
fmul dword [0x6bdbc8]
fstp dword [ebx + 0x14]
fld dword [esp + 0x1a8]
fmul dword [0x6bdbc8]
fstp dword [ebx + 0x18]
fld dword [esp + 0x1b0]
fmul dword [0x6bdbc8]
fstp dword [ebx + 0x20]
fld dword [esp + 0x1b4]
fmul dword [0x6bdbc8]
fstp dword [ebx + 0x24]
fld dword [esp + 0x1b8]
fmul dword [0x6bdbc8]
fstp dword [ebx + 0x28]
fld dword [0x6e6230]
fmul dword [ebx + 0x120]
call fcn.00666390
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x52826e
fadd dword [0x6bdcac]
fst dword [ebx + 0x30]
fld dword [0x6e6230]
fmul dword [ebx + 0x124]
call fcn.00666390
test eax, eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x528294
fadd dword [0x6bdcac]
fst dword [esp + 0x1c]
fstp dword [ebx + 0x34]
fld dword [0x6e6230]
fmul dword [ebx + 0x128]
call fcn.00666390
test eax, eax
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
jge 0x5282be
fadd dword [0x6bdcac]
fst dword [esp + 0x3c]
mov ecx, 0x437f0000
fstp dword [ebx + 0x38]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x5282da
mov dword [ebx + 0x30], ecx
fld dword [esp + 0x1c]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x5282ee
mov dword [ebx + 0x34], ecx
fld dword [esp + 0x3c]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x528302
mov dword [ebx + 0x38], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret