Function at 0x5a5cd4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d89fa
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
push fcn.005770ec
push fcn.0057713c
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xb0a680
add eax, 0x3b8
push 4
push 0x1c
push eax
call fcn.00858736
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x9c078c]
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.005a602c
mov ecx, dword [ebp - 0x30]
mov eax, dword [0xa747e8]
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], 0x9c05a0
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 + 0x9c0500]
push esi
call fcn.007b9a88
mov ecx, dword [ebp - 0x30]
mov ebx, dword [0xa747e4]
mov edx, dword [0xa747e0]
mov eax, dword [0xa747dc]
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 + 0x9c04a0]
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.007b4f54
mov ecx, dword [ebp - 0x30]
call fcn.007751b0
mov esi, dword [ebp - 0x30]
fld dword [0x92a138]
mov ecx, dword [esi + 0x2e8]
mov ebx, dword [esi + 0x30]
fmul st(1), st(0)
fxch st(1)
fmul dword [0x92a134]
fdivrp st(1)
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 dword [esi + 0x388], 0
or ebx, 0x40000
mov word [esi + 0x342], ax
push 0xff303030
push 0xa0303030
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, 1
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x30], ebx
call fcn.00578cc4
mov edx, dword [ebp - 0x30]
push 0xff303030
push 0xa0303030
mov dword [edx + 0x3b0], eax
call fcn.00578cc4
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x33c]
mov dword [ecx + 0x3b4], eax
mov eax, dword [0xa747d8]
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
mov dword [ecx + 0x398], 1
lea eax, [ebx + ebx]
add eax, eax
lea edx, [eax + eax]
add edx, edx
add edx, edx
sub edx, eax
lea ecx, [ecx + edx + 0x3b8]
call fcn.0057739c
add ebx, 1
cmp ebx, 4
jge 0x5a6004
mov ecx, dword [ebp - 0x30]
jmp 0x5a5fdd
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