Function at 0x5119ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x5119c4
add esp, 0xfffffff0
call fcn.00403848
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x511beb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x5119fa
mov eax, ebx
mov edx, dword [0x5077c4]
call fcn.00403670
test al, al
je 0x5119fa
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x511a08
mov eax, dword [ebp - 0xc]
call fcn.0051705c
xor eax, eax
push ebp
push 0x511bce
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041eaf8
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 7
mov eax, dword [ebp - 4]
mov byte [eax + 0x12], 0
mov dl, 1
mov eax, dword [0x4289bc]
call fcn.0042a130
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], ebx
mov eax, dword [ebp - 4]
call fcn.00512164
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x512360
mov eax, dword [ebp - 4]
mov byte [eax + 0x58], 3
lea edx, [ebp - 0x10]
mov eax, dword [0x550930]
mov eax, dword [eax]
call fcn.0048ba80
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.004043c8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xe2], 1
mov eax, dword [ebp - 4]
call fcn.00512640
mov edx, dword [ebp - 4]
mov dword [edx + 0xf4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 0xffffffff
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], 0x80000000
mov word [eax + 0x68], 0x3fff
mov eax, dword [ebp - 4]
mov byte [eax + 0xb1], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x514c50
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e4e1c]
call fcn.004e8790
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x509c64]
call fcn.0053043c
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e5550]
call fcn.004ea244
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0xd0], eax
mov dl, 1
mov eax, dword [0x47a89c]
call fcn.004034b4
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0x513274
mov eax, dword [ebp - 4]
mov byte [eax + 0xb2], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511bd5
cmp dword [ebp - 0xc], 0
je 0x511bcd
mov eax, dword [ebp - 0xc]
call fcn.0051ac98
ret