Function at 0x5adb90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d8ec4
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], 0xb0af40
add ecx, 0x3b0
call fcn.005122f8
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 [0x9c1288]
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.005adf28
mov ecx, dword [ebp - 0x30]
mov eax, dword [0xa748dc]
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], 0x9c10c0
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 + 0x9c1020]
push esi
call fcn.007b9a88
mov ecx, dword [ebp - 0x30]
mov edx, dword [0xa748bc]
mov esi, dword [0xa748c0]
mov eax, dword [0xa748b8]
mov ebx, dword [ecx + 0x370]
mov edi, dword [ecx + 0x33c]
push dword [eax + edi*4]
push dword [edx + ebx*4]
push dword [esi + edi*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 + 0x9c0fc0]
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 [0x92a770]
mov ecx, dword [esi + 0x2e8]
mov ebx, dword [esi + 0x30]
fmul st(1), st(0)
fxch st(1)
fmul dword [0x92a76c]
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 + 0x390], 0xc0800000
or ebx, 0x40000
mov word [esi + 0x342], ax
mov word [esi + 0x344], ax
mov eax, dword [esi + 0x33c]
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, 8
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x30], ebx
cmp eax, 1
jne 0x5ade4d
mov ebx, 0xff55ff00
jmp 0x5ade5e
cmp eax, 2
jne 0x5ade59
mov ebx, 0xffff0055
jmp 0x5ade5e
mov ebx, 0xffff0077
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 + 0x398], 1
mov dword [ecx + 0x3d0], eax
mov eax, dword [0xa748b4]
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 0x5adef6
mov ecx, dword [ebp - 0x30]
jmp 0x5adecf
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 dword [eax + 0x444], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8