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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov al, byte [0x689421]
test al, al
push ebx
push esi
push edi
je 0x51a7c1
cmp word [0x7c0dc0], 1
jne 0x51a7c1
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
cmp byte [ebx], 0
jns 0x51a132
mov ecx, dword [0x69c678]
mov edx, dword [0x69c674]
push ecx
push edx
call fcn.005190f0
add esp, 8
mov al, byte [0x69c698]
test al, al
jne 0x51a5e4
mov al, byte [0x69c69a]
test al, al
jne 0x51a5e4
cmp dword [0x7c0d2c], 0xffff0101
jb 0x51a5e4
xor eax, eax
cmp eax, 0x69e140
je 0x51a5d0
mov eax, dword [0x69e140]
test eax, eax
je 0x51a5d0
mov esi, dword [0x71d09c]
mov eax, dword [esi]
mov edx, ebx
mov dword [esp + 0x10], eax
call fcn.005155a0
movsx eax, ax
lea ecx, [eax + eax*2]
mov edx, dword [ecx*4 + 0x6e19b8]
mov eax, dword [esp + 0x10]
push edx
push esi
call dword [eax + 0x15c]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [edi + 0x28]
not edx
and edx, 2
or edx, 1
push edx
push 0x16
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 7
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 0xe
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 4
push 0x17
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0
push 0x1c
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 0
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x71d08c]
mov eax, dword [eax + 0x5c]
push 0
push 0
call fcn.00518920
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
add esp, 8
push 3
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 3
push 2
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 3
push 3
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 6
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 7
push 0
push eax
call dword [edx + 0x114]
mov edx, dword [0x69d3a0]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push edx
push 2
push eax
call dword [ecx + 0x104]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 3
push 1
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 3
push 2
push 2
push eax
call dword [edx + 0x114]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 2
push 5
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
push 6
push 2
push eax
call dword [edx + 0x114]
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 1
push 7
push 2
push eax
call dword [ecx + 0x114]
mov ecx, dword [0x69e450]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
movsx edx, word [0x7c0df4]
movsx eax, word [0x7c0df8]
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x672d20]
fstp dword [esp + 0x18]
mov eax, dword [0x71d08c]
fld dword [0x672afc]
fsub dword [ebx + 0x1c]
fst dword [esp + 0x10]
fmul dword [eax + 0x17c]
fld dword [eax + 0x190]
fmul dword [ebx + 0x1c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [eax + 0x180]
fld dword [eax + 0x194]
fmul dword [ebx + 0x1c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [eax + 0x184]
fld dword [eax + 0x198]
fmul dword [ebx + 0x1c]
faddp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x10]
fmul dword [eax + 0x174]
fld dword [eax + 0x188]
fmul dword [ebx + 0x1c]
faddp st(1)
fdivr dword [0x672afc]
fmul dword [esp + 0x14]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fmul dword [eax + 0x178]
fld dword [eax + 0x18c]
mov al, byte [0x71d0b4]
test al, al
fmul dword [ebx + 0x1c]
faddp st(1)
fstp dword [esp + 0x20]
je 0x51a430
movsx ecx, word [0x7c0df6]
movsx edx, word [0x7c0dfa]
mov eax, dword [esp + 0x18]
sub edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
fild dword [esp + 0x10]
fmul qword [0x672d20]
fstp dword [esp + 0x24]
jmp 0x51a440
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov ecx, dword [esp + 0x54]
fxch st(1)
mov eax, dword [0x71d09c]
fstp dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
push 3
fstp dword [esp + 0x44]
lea ecx, [esp + 0x20]
push ecx
push 0xa
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], 0
mov edx, dword [eax]
push eax
call dword [edx + 0x178]
mov ecx, dword [0x7c0e6c]
mov eax, dword [0x7c0e68]
mov edx, dword [0x7c0e64]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x7c0e78]
mov dword [esp + 0x50], eax
mov eax, dword [0x7c0e74]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x7c0dd0]
mov dword [esp + 0x4c], edx
mov edx, dword [0x7c0e70]
mov dword [esp + 0x60], eax
mov eax, dword [0x7c0dcc]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x7c0ddc]
mov dword [esp + 0x5c], edx
mov edx, dword [0x7c0dc8]
mov dword [esp + 0x20], eax
mov eax, dword [0x7c0dd8]
mov dword [esp + 0x34], ecx
push 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], edx
mov edx, dword [0x7c0dd4]
push ecx
mov dword [esp + 0x38], eax
mov eax, dword [0x71d09c]
push 0x1b
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x74], 0x40400000
mov dword [esp + 0x34], 0x40000000
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], 0x3f000000
mov edx, dword [eax]
push eax
call dword [edx + 0x178]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 2
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
call dword [edx + 0x178]
mov edx, dword [esp + 0x14]
mov eax, edx
mov ecx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], edx
push 1
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x58], eax
mov eax, dword [0x71d09c]
push 0
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1b4]
mov eax, dword [0x69e140]
mov ecx, dword [eax]
push 3
lea edx, [esp + 0x70]
push edx
push eax
call dword [ecx + 0x100]
mov edx, dword [0x71d08c]
movzx edx, byte [edx + 0x170]
mov eax, dword [0x69e140]
mov ecx, dword [eax]
and edx, 1
push edx
push eax
call dword [ecx + 0x104]
push 0
mov ecx, ebx
call fcn.005337d0
mov eax, dword [0x69e140]
mov ecx, dword [eax]
add esp, 4
push eax
call dword [ecx + 0x108]
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 3
push 0x17
push eax
call dword [edx + 0xe4]
jmp 0x51a60f
fld dword [esp + 0x14]
fcomp dword [0x672dec]
fnstsw ax
test ah, 0x41
jne 0x51a5fd
mov dword [esp + 0x14], 0x3f666666
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 3
push 0x17
push eax
call dword [ecx + 0xe4]
fld dword [esp + 0x14]
fcomp dword [0x672afc]
fnstsw ax
test ah, 5
jp 0x51a7b0
mov edx, dword [ebx]
mov eax, dword [ebx + 0x60]
mov cx, word [ebx + 0x64]
mov esi, dword [ebx + 0x70]
and edx, 0x180
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], edx
lea edx, [ebx + 0x7c]
mov eax, dword [edx]
mov dword [esp + 0x124], eax
xor eax, eax
test esi, esi
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov word [esp + 0x7c], cx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x128], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x118], eax
mov dword [esp + 0x12c], edx
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x11c], eax
mov dword [esp + 0x134], ecx
mov dword [esp + 0x120], eax
mov dword [esp + 0x138], edx
mov ecx, 0x1d
je 0x51a6d3
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
jmp 0x51a6de
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x51a6fa
mov ecx, dword [eax]
mov dword [esp + 0xf4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xf8], edx
jmp 0x51a70a
xor eax, eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov eax, dword [0x71d09c]
mov ecx, dword [eax]
push 0
push 0xe
push eax
call dword [ecx + 0xe4]
fld dword [0x672afc]
fsub dword [esp + 0x14]
mov al, byte [0x6893ec]
test al, al
mov byte [0x71d126], 1
fstp dword [0x71d128]
je 0x51a76b
cmp dword [0x7c0d2c], 0xffff0101
mov byte [0x69c75c], 1
mov byte [0x71d122], 0
jae 0x51a76b
mov eax, dword [0x71d09c]
mov edx, dword [eax]
push 1
push 0x89
push eax
call dword [edx + 0xe4]
push 1
lea esi, [esp + 0x74]
call fcn.005270c0
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x48]
push ecx
xor ecx, ecx
mov cx, word [ebx + 0x10]
push edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x54]
push eax
push ecx
push edx
call fcn.0052b1c0
add esp, 0x1c
call fcn.0052b6a0
call fcn.00512090
mov ebx, dword [ebp + 8]
mov byte [0x71d126], 0
cmp byte [ebx], 0
jns 0x51a7c1
push 0
push 0
call fcn.005190f0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret