Function at 0x512bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d434c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], eax
call fcn.0052b6ec
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx], 0xaff860
add ecx, 0x3b0
call fcn.00576a48
mov dword [ebp - 4], 1
push fcn.005770ec
push fcn.0057713c
mov eax, dword [ebp - 0x30]
push 4
add eax, 0x3d4
push 0x1c
push eax
call fcn.00858736
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x9bb404]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ecx]
mov dword [ecx + 4], eax
push edx
call dword [ebx + 0x14c]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
mov dword [esi + 0x2a4], eax
mov dword [esi + 0x2a8], edx
mov edx, dword [ebp - 0x30]
mov dword [esi + 0x2ac], ebx
mov edi, dword [edx + 0x2a4]
mov ecx, dword [edx + 0x2a8]
mov eax, dword [edx + 0x2ac]
mov dword [edx + 0x298], edi
mov dword [edx + 0x29c], ecx
mov ecx, dword [ebp - 0x30]
mov dword [edx + 0x2a0], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x298]
mov dword [edx + 0x44], eax
mov eax, dword [edx + 0x29c]
mov dword [edx + 0x48], eax
mov eax, dword [edx + 0x2a0]
mov dword [edx + 0x4c], eax
mov eax, dword [ecx + 0x370]
mov dword [ecx + 0x33c], eax
call fcn.00512f94
mov ecx, dword [ebp - 0x30]
mov eax, dword [0xa72d0c]
mov edi, dword [ecx + 0x370]
mov edx, dword [eax + 0x42c]
add edi, edi
mov ebx, dword [edx + edi*8 + 8]
mov dword [ecx + 0x34], ebx
mov esi, dword [eax + 0x42c]
mov edx, dword [esi + edi*8 + 0xc]
mov dword [ecx + 0x24], edx
mov dword [ecx + 0xd8], 0x9bb300
mov eax, dword [eax + 0x430]
mov dword [ecx + 0xdc], eax
xor eax, eax
push eax
mov word [ecx + 0xb8], ax
call fcn.007aa4c8
mov ecx, dword [ebp - 0x30]
push 1
movzx eax, word [ecx + 0xb8]
mov edx, dword [ecx + 0x33c]
mov word [ecx + 0xb8], ax
lea ebx, [edx + edx]
add ebx, ebx
sub ebx, edx
add ebx, ebx
add ebx, ebx
sub ebx, edx
add ebx, ebx
lea esi, [ebx + ebx + 0x9bb260]
push esi
call fcn.007b9a88
mov ecx, dword [ebp - 0x30]
mov ebx, dword [0xa72d08]
mov edx, dword [0xa72d04]
mov eax, dword [0xa72d00]
mov esi, dword [ecx + 0x33c]
push dword [eax + esi*4]
push dword [edx + esi*4]
push dword [ebx + esi*4]
call fcn.007868f8
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x33c]
movzx esi, word [ecx + 0x334]
add eax, eax
add eax, eax
lea edx, [eax + eax]
add edx, edx
add edx, edx
sub edx, eax
lea ebx, [edx + 0x9bb200]
mov dword [ecx + 0x358], ebx
mov word [ecx + 0x346], si
call fcn.0078730c
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x300]
mov edx, dword [esi + 0x304]
mov ebx, dword [esi + 0x308]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], ebx
call fcn.00786bbc
mov ecx, dword [ebp - 0x30]
call fcn.007751b0
mov esi, dword [ebp - 0x30]
fld dword [0x9205f4]
fmul st(1), st(0)
fxch st(1)
fmul dword [0x9205f0]
fdivrp st(1)
mov ecx, dword [esi + 0x2e8]
mov ebx, dword [esi + 0x30]
fnstcw word [ebp - 0x2c]
movzx eax, word [ebp - 0x2c]
or eax, 0xc00
mov dword [ebp - 0x24], eax
fldcw word [ebp - 0x24]
fistp dword [esi + 0x2b0]
fldcw word [ebp - 0x2c]
mov eax, 0xf
mov word [esi + 0x342], ax
or ebx, 0x40000
mov word [esi + 0x344], ax
xor edx, edx
mov word [esi + 0x330], dx
mov word [esi + 0x37c], dx
mov word [esi + 0x37e], dx
mov dword [esi + 0x380], edx
mov dword [esi + 0x384], edx
or ecx, 2
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x30], ebx
call fcn.00520e6c
test eax, eax
je 0x512e9c
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x33c]
cmp eax, 1
jne 0x512e89
mov ebx, 0xffff0040
jmp 0x512ec2
cmp eax, 2
jne 0x512e95
mov ebx, 0xffffff00
jmp 0x512ec2
mov ebx, 0xff20ff20
jmp 0x512ec2
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x33c]
cmp eax, 1
jne 0x512eb1
mov ebx, 0xffff0000
jmp 0x512ec2
cmp eax, 2
jne 0x512ebd
mov ebx, 0xffffff00
jmp 0x512ec2
mov ebx, 0xff0000ff
mov eax, dword [edx + 0x3b0]
lea ecx, [edx + 0x3b0]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x398], 1
push ebx
push 0xa0303030
call fcn.00578cc4
mov edx, dword [ebp - 0x30]
push ebx
push 0xa0303030
mov dword [edx + 0x3cc], eax
call fcn.00578cc4
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x33c]
mov dword [ecx + 0x3d0], eax
mov eax, dword [0xa72cfc]
mov ebx, dword [eax + edx*4]
mov esi, dword [ebx]
mov dword [ecx + 0x3a0], esi
mov edi, dword [eax + edx*4]
mov ebx, dword [edi + 4]
mov dword [ecx + 0x3a8], ebx
mov ebx, dword [eax + edx*4]
mov ebx, dword [ebx + 8]
mov dword [ecx + 0x3a4], ebx
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x3ac], eax
xor ebx, ebx
lea eax, [ebx + ebx]
add eax, eax
lea edx, [eax + eax]
add edx, edx
add edx, edx
sub edx, eax
lea ecx, [ecx + edx + 0x3d4]
call fcn.0057739c
add ebx, 1
cmp ebx, 4
jge 0x512f6c
mov ecx, dword [ebp - 0x30]
jmp 0x512f45
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 0x150]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8