Function at 0x513e1c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test dl, dl
je 0x513e34
add esp, 0xfffffff0
call fcn.00403cc8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x514077
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x513e71
mov eax, dword [ebp - 0xc]
mov edx, dword [0x506024]
call fcn.00403af0
test al, al
je 0x513e71
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x513e7f
mov eax, dword [ebp - 0x10]
call fcn.0051d4f4
xor eax, eax
push ebp
push 0x51405a
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0041ff70
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 7
mov eax, dword [ebp - 4]
mov byte [eax + 0x12], 0
mov dl, 1
mov eax, dword [0x42a17c]
call fcn.0042b954
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
call fcn.00514798
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x5149f8
mov eax, dword [ebp - 4]
mov byte [eax + 0x5c], 3
lea edx, [ebp - 0x14]
mov eax, dword [0x5a22b8]
mov eax, dword [eax]
call fcn.0046d468
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0x60
call fcn.00404888
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x132], 1
mov eax, dword [ebp - 4]
call fcn.00514e20
mov edx, dword [ebp - 4]
mov dword [edx + 0x144], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xd8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x84], 0xffffffff
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], 0x80000000
mov word [eax + 0x70], 0x3fff
mov eax, dword [ebp - 4]
mov byte [eax + 0xb9], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x18], 0x5186f0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4b97b8]
call fcn.004be710
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 4]
mov dword [eax + 0x1c], edx
mov edx, dword [edx]
mov edx, dword [edx + 0x64]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x507d7c]
call fcn.00547b58
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4b9f70]
call fcn.004c0850
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0xe0], eax
mov dl, 1
mov eax, dword [0x45bb88]
call fcn.00403934
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x515f84
mov eax, dword [ebp - 4]
mov byte [eax + 0xba], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514061
cmp dword [ebp - 0x10], 0
je 0x514059
mov eax, dword [ebp - 0x10]
call fcn.0051d584
ret