Function at 0x522f88
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ddb3f
call 0x575ad8
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.00523840
xor esi, esi
push 0x44
mov dword [ebx + 4], 0xa0
mov dword [ebx + 0x2e0], esi
call 0x58c41a
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x522fcc
mov ecx, eax
call fcn.00513473
mov esi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov edi, esp
mov dword [ebp - 0x20], esp
push ecx
mov dword [esi + 8], 0xcb
mov ecx, esp
mov dword [ebp - 0x20], esp
push fcn.005155c8
call 0x58d204
lea ecx, [ebx + 0x1a8]
push edi
call 0x54d20a
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0051c398
push 1
lea ecx, [esi + 0x30]
pop edi
push eax
mov dword [ebp - 4], edi
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x58d196
and dword [esi + 0x2c], 0
and dword [esi + 0x34], 0
lea ecx, [ebx + 0x14]
push esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 0x18], ecx
call 0x58bba8
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x52305d
mov ecx, eax
call fcn.00513473
mov esi, eax
jmp 0x52305f
xor esi, esi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
push ecx
mov dword [esi + 8], 0xcc
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x5155a0
call 0x58d204
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0051c398
push 3
lea ecx, [esi + 0x30]
pop ebx
push eax
mov dword [ebp - 4], ebx
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call 0x58d196
mov ecx, dword [ebp - 0x18]
and dword [esi + 0x2c], 0
and dword [esi + 0x34], 0
push esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
call 0x58bba8
push 0x84
call 0x58c41a
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x5230f1
mov ecx, eax
call fcn.0050e3ce
jmp 0x5230f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
push ecx
mov esi, 0x515e80
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov dword [ebp - 0x14], eax
mov dword [eax + 8], 0x578
call 0x58d204
push ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0051c398
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 5
lea ecx, [eax + 0x2c]
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call 0x58d196
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
push ecx
mov dword [ebp - 0x20], ebx
mov ebx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push esi
call 0x58d204
mov esi, dword [ebp - 0x10]
push ebx
lea ecx, [esi + 0x1a8]
call 0x54d20a
mov eax, dword [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0051c398
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.0050ec7e
mov ecx, dword [ebp - 0x18]
and dword [esi + 0x30], 0
push esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 2
call 0x58bba8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret