Function at 0x5193a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x5ebda0]
call fcn.00403b20
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51965d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.00403be8
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call fcn.00403b10
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call fcn.00403b08
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x6c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
je 0x519411
call fcn.00401250
jmp 0x519664
push 0xcc0020
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004039f8
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403b58
call fcn.004039f8
push eax
call fcn.00401aac
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403b58
xor ecx, ecx
xor edx, edx
call fcn.00403938
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x10]
mov dl, 5
call fcn.004038e0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x51966c]
mov eax, dword [esi]
fstp dword [eax + 0xc0]
wait
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x51966c]
mov eax, dword [esi]
fstp dword [eax + 0xc4]
wait
mov eax, dword [esi]
fld dword [eax + 0xc0]
fmul st(0)
fstp xword [ebp - 0x24]
wait
mov eax, dword [esi]
fld dword [eax + 0xc4]
fmul st(0)
fld xword [ebp - 0x24]
faddp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00401088
call fcn.00401090
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0xbc]
mov dword [ebp - 0x14], eax
fld xword [0x519670]
fmul dword [ebp - 0x14]
fdiv dword [0x51967c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00401078
mov dword [ebp - 0x18], ebx
fild dword [ebp - 0x18]
fmulp st(1)
mov eax, dword [esi]
fsubr dword [eax + 0xc0]
call fcn.00401090
mov edi, eax
fld xword [0x519670]
fmul dword [ebp - 0x14]
fdiv dword [0x51967c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00401080
mov dword [ebp - 0x18], ebx
fild dword [ebp - 0x18]
fmulp st(1)
mov eax, dword [esi]
fsubr dword [eax + 0xc4]
call fcn.00401090
mov dword [ebp - 0xc], eax
fld dword [ebp - 0x14]
mov eax, dword [esi]
fadd dword [eax + 4]
fstp dword [ebp - 0x14]
wait
fld xword [0x519670]
fmul dword [ebp - 0x14]
fdiv dword [0x51967c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00401078
mov dword [ebp - 0x18], ebx
fild dword [ebp - 0x18]
fmulp st(1)
mov eax, dword [esi]
fsubr dword [eax + 0xc0]
call fcn.00401090
mov dword [ebp - 0x10], eax
fld xword [0x519670]
fmul dword [ebp - 0x14]
fdiv dword [0x51967c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00401080
mov dword [ebp - 0x18], ebx
fild dword [ebp - 0x18]
fmulp st(1)
mov eax, dword [esi]
fsubr dword [eax + 0xc4]
call fcn.00401090
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
add eax, eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
add eax, eax
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
neg eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
neg edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
pop ecx
call fcn.00403980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519664
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004038f0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00403910
cmp dword [ebp - 8], 0
je 0x519654
mov eax, dword [ebp - 8]
push eax
call fcn.00401b1c
mov eax, dword [ebp - 4]
call fcn.00401130
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret