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

Disassembly:
sub esp, 0x80
push esi
mov esi, eax
cmp dword [0x7b2a0c], 0xffff0101
jb 0x521fa4
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 2
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 5
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 6
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 7
push 0
push eax
call dword [ecx + 0x114]
fld dword [esi + 4]
fsub dword [0x7b2aa8]
lea ecx, [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esi + 8]
fsub dword [0x7b2aac]
fstp dword [esp + 0x1c]
fld dword [esi + 0xc]
fsub dword [0x7b2ab0]
fstp dword [esp + 0x20]
call fcn.00401990
fstp st(0)
fld dword [esp + 0x20]
fmul dword [0x7b2abc]
fld dword [esp + 0x1c]
fmul dword [0x7b2ab8]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x7b2ab4]
faddp st(1)
fld qword [0x66c900]
fcos
fxch st(1)
fsub st(1)
fld dword [0x66c410]
fsub st(2)
fdivp st(1)
fstp st(1)
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x521462
fstp st(0)
mov dword [esp + 8], 0
jmp 0x52147f
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x52147b
fstp st(0)
mov dword [esp + 8], 0x3f800000
jmp 0x52147f
fstp dword [esp + 8]
mov ax, word [0x7b2ada]
sub ax, word [0x7b2ad6]
mov edx, dword [0x7b2ad4]
mov ecx, dword [0x7b2ad8]
sub ecx, edx
movsx edx, ax
mov dword [esp + 0xc], edx
movsx eax, cx
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
fdivr dword [0x66c410]
mov eax, dword [0x70eda0]
push 5
lea edx, [esp + 0x38]
push edx
push 0xd
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x3f800000
push eax
fld st(0)
fadd st(1)
fstp dword [esp + 0x44]
fld dword [0x66c4f0]
fsub st(1)
fstp dword [esp + 0x50]
fstp st(0)
fild dword [esp + 0x1c]
fdivr dword [0x66c410]
fld dword [0x66c4f8]
fmul st(1)
fstp dword [esp + 0x58]
fadd dword [0x66c410]
fstp dword [esp + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x24]
call fcn.0050f000
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
fld dword [eax + 0x10]
mov dword [esp + 0x18], ecx
fld dword [esp + 0x18]
mov eax, dword [eax + 0x10]
fmul st(1)
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x10]
push ecx
fadd dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
fstp dword [esp + 0x30]
lea ecx, [esp + 0x30]
fld dword [esp + 0x28]
push ecx
fmul st(1)
fadd dword [esi + 8]
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fmul st(1)
fadd dword [esi + 0xc]
fstp dword [esp + 0x3c]
fstp st(0)
call fcn.005209e0
add esp, 0x10
test al, al
je 0x521f8e
fld dword [esp + 0x18]
push ebx
fadd dword [0x66c408]
sub esp, 8
fstp qword [esp]
call fcn.0061f4e0
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [0x66c408]
fstp qword [esp]
call fcn.0061f4e0
fld dword [esp + 0x24]
mov eax, dword [0x70eda0]
fsub dword [0x66cb18]
mov edx, dword [eax]
add esp, 8
push 3
fstp dword [esp + 0x2c]
push 1
fld dword [0x66cb18]
push 1
fsubr st(1)
push eax
fstp dword [esp + 0x40]
fld dword [esp + 0x2c]
fadd dword [0x66cb18]
fstp dword [esp + 0x3c]
fadd dword [0x66cb18]
fstp dword [esp + 0x44]
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 2
push 1
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 1
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 6
push 1
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 7
push 1
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 1
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 2
push 2
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 5
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 6
push 2
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 7
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 1
push 3
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 2
push 3
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 3
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 6
push 3
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 7
push 3
push eax
call dword [edx + 0x114]
mov edx, dword [0x6db178]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x15c]
mov dl, byte [0x695f30]
mov ebx, dword [0x6db180]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
neg dl
sbb edx, edx
and edx, 0x10
or edx, ebx
and edx, 0x10
push edx
push eax
call dword [ecx + 0x134]
mov edx, dword [0x697cc0]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x170]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1ac]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 0x16
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 8
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0xf
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1c
push eax
call dword [ecx + 0xe4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0x6dadc0], edx
mov edx, eax
mov dword [0x6dadc4], eax
mov eax, ecx
mov dword [0x6dadd8], ecx
mov ecx, dword [esp + 0x34]
mov dword [0x6dadf0], eax
mov eax, ecx
mov dword [0x6daddc], edx
mov edx, dword [esp + 0x28]
push 0
mov dword [0x6dae0c], eax
mov eax, dword [0x70eda0]
push 0x3c
mov dword [0x6dadf4], ecx
mov dword [0x6dae08], edx
mov dword [0x6dae10], 0
mov dword [0x6dadf8], 0
mov dword [0x6dade0], 0
mov dword [0x6dadc8], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 1
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 4
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0x18
push 0x6dadc0
push 2
push 6
push eax
call dword [ecx + 0x14c]
mov edx, dword [0x70ed94]
mov eax, dword [edx + 0x6c]
push 0
push 0
call fcn.00514280
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
add esp, 8
push 3
push 0x16
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 8
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 7
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 0x17
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0xe
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0x1c
push eax
call dword [edx + 0xe4]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov dword [0x6dadcc], ecx
mov dword [0x6dadd0], 0
mov dword [0x6dadd4], 0
mov dword [0x6dadc0], eax
mov dword [0x6dadc4], edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [0x6dadc8], eax
mov eax, dword [esp + 0x30]
mov dword [0x6dadd8], edx
mov edx, dword [esp + 0x24]
mov dword [0x6daddc], eax
mov eax, dword [esp + 0x2c]
mov dword [0x6dade0], edx
mov edx, dword [esp + 0x34]
mov dword [0x6dadf0], eax
mov eax, dword [esp + 0x24]
mov dword [0x6dadf4], edx
mov edx, dword [esp + 0x28]
mov dword [0x6dadf8], eax
mov eax, dword [esp + 0x34]
mov dword [0x6dae08], edx
mov edx, dword [esp + 0x24]
push ecx
mov dword [0x6dae0c], eax
mov eax, dword [0x70eda0]
push 0x3c
mov dword [0x6dade4], ecx
mov dword [0x6dade8], 0x3f800000
mov dword [0x6dadec], 0
mov dword [0x6dadfc], ecx
mov dword [0x6dae00], 0x3f800000
mov dword [0x6dae04], 0x3f800000
mov dword [0x6dae14], ecx
mov dword [0x6dae18], 0
mov dword [0x6dae1c], 0x3f800000
mov dword [0x6dae10], edx
mov edx, dword [eax]
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 1
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0x22
push 2
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 6
push 4
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 6
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 1
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 4
push 1
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0x18
push 0x6dadc0
push 2
push 6
push eax
call dword [edx + 0x14c]
xor eax, eax
cmp eax, 0x697660
je 0x521f8d
mov eax, dword [0x697660]
test eax, eax
je 0x521f8d
push edi
push 6
lea esi, [esp + 0x30]
call fcn.00520bd0
push 7
call fcn.00520bd0
push 4
push 7
push 6
call fcn.00520fd0
mov edx, dword [0x7b2ad4]
mov ecx, dword [0x7b2ad8]
sub ecx, edx
add esp, 0x14
push 5
mov esi, eax
mov ax, word [0x7b2ada]
sub ax, word [0x7b2ad6]
mov dword [esp + 0x44], 0
movsx edx, ax
mov dword [esp + 0x10], edx
movsx eax, cx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [0x70eda0]
fdivr dword [0x66c410]
lea edx, [esp + 0x40]
push edx
push 0xd
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3f000000
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x88], 0x3f800000
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3f800000
push eax
fld st(0)
fadd st(1)
fstp dword [esp + 0x4c]
fld dword [0x66c4f0]
fsub st(1)
fstp dword [esp + 0x58]
fstp st(0)
fild dword [esp + 0x1c]
fdivr dword [0x66c410]
fld dword [0x66c4f8]
fmul st(1)
fstp dword [esp + 0x60]
fadd dword [0x66c410]
fstp dword [esp + 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x178]
mov edx, dword [0x6db178]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x15c]
mov dl, byte [0x695f30]
mov edi, dword [0x6db180]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
neg dl
sbb edx, edx
and edx, 0x10
or edx, edi
and edx, 0x10
push edx
push eax
call dword [ecx + 0x134]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
mov edx, dword [0x697cc0]
push edx
push eax
call dword [ecx + 0x170]
mov eax, esi
xor edx, edx
call fcn.00528680
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 7
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 0x16
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 7
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 5
push 0x13
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 0x14
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0xab
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 7
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0x1c
push eax
call dword [edx + 0xe4]
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, 0x10
fild dword [esp + 0xc]
lea ebx, [eax + 1]
mov dword [esp + 0x18], ebx
fmul dword [0x66c4ec]
fmul dword [0x66cad0]
fsub dword [0x66c570]
fstp dword [esp + 0xc]
fild dword [esp + 0x18]
fdivr dword [esp + 0x10]
fmul dword [0x66c4a8]
call fcn.006343a4
fld dword [esp + 0x2c]
fsub dword [esp + 0xc]
shl eax, 0x18
or eax, 0xffffff
push 3
fst dword [0x6dadc0]
mov dword [0x6dadcc], eax
fld dword [esp + 0x38]
mov dword [0x6dade4], eax
fsub dword [esp + 0x10]
mov dword [0x6dadfc], eax
mov dword [0x6dae14], eax
mov eax, dword [0x697660]
fst dword [0x6dadc4]
lea edx, [esp + 0x18]
fld dword [esp + 0x10]
push edx
fadd dword [esp + 0x38]
mov dword [0x6dadd0], 0
mov dword [0x6dadd4], 0
mov dword [0x6dade8], 0x3f800000
fst dword [0x6dadd8]
mov dword [0x6dadec], 0
fxch st(1)
mov dword [0x6dae00], 0x3f800000
fstp dword [0x6daddc]
mov dword [0x6dae04], 0x3f800000
mov dword [0x6dae18], 0
fstp dword [0x6dadf0]
mov dword [0x6dae1c], 0x3f800000
fld dword [esp + 0x14]
mov dword [0x6dae10], 0
fadd dword [esp + 0x40]
mov dword [0x6dadf8], 0
mov dword [0x6dade0], 0
mov dword [0x6dadc8], 0
fst dword [0x6dadf4]
push eax
fxch st(1)
fstp dword [0x6dae08]
fstp dword [0x6dae0c]
mov ecx, dword [eax]
call dword [ecx + 0x100]
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jbe 0x521f71
lea ecx, [ecx]
mov eax, dword [0x697660]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x104]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0x18
push 0x6dadc0
push 2
push 6
push eax
call dword [edx + 0x14c]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x521f40
mov eax, dword [0x697660]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x108]
dec edi
mov eax, ebx
mov dword [esp + 0xc], eax
jne 0x521e02
pop edi
pop ebx
movzx ecx, byte [0x695f30]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x134]
pop esi
add esp, 0x80
ret