Function at 0x51cc75
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4dd134
call 0x575ad8
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
call fcn.00523840
push 6
lea edi, [esi + 0x2e8]
pop ecx
push 0xffffffffffffff9d
pop eax
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, esi
mov dword [esi + 0x368], edi
call fcn.0051dbb2
push 0x44
mov dword [esi + 4], 0xa5
mov dword [esi + 0x36c], 0x1e
mov dword [esi + 0x370], 0x3c
mov dword [esi + 0x374], edi
mov dword [esi + 0x2e0], edi
call 0x58c41a
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x51cceb
mov ecx, eax
call fcn.00513473
mov edi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
push ecx
mov dword [edi + 8], 0xcb
mov ecx, esp
mov dword [ebp - 0x20], esp
push fcn.005155c8
call 0x58d204
lea ecx, [esi + 0x1a8]
push ebx
call 0x54d20a
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0051c398
push 1
lea ecx, [edi + 0x30]
pop ebx
push eax
mov dword [ebp - 4], ebx
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x58d196
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [edi + 0x2c], ebx
mov eax, dword [esi + 0x374]
push edi
mov dword [edi + 0x14], eax
mov dword [edi + 0x34], ebx
mov dword [ebp - 0x18], ecx
call 0x58bba8
inc dword [esi + 0x374]
lea eax, [esi + 0x380]
mov dword [ebp - 0x10], 0xd3
mov dword [ebp - 0x14], eax
push 0x40
call 0x58c41a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x51cd98
mov ecx, eax
call fcn.0050b99b
mov edi, eax
jmp 0x51cd9a
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add eax, 0xffffffa6
push ecx
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov ebx, esp
mov dword [ebp - 0x24], esp
push ecx
add eax, 0xfffffffc
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call 0x58cf0b
push ebx
lea ecx, [esi + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0051c398
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 3
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call 0x58d196
and dword [edi + 0xc], 0
and dword [edi + 0x10], 0
mov eax, dword [esi + 0x374]
mov ecx, dword [ebp - 0x18]
push edi
mov dword [edi + 0x14], eax
call 0x58bba8
inc dword [esi + 0x374]
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x51ce33
mov ecx, eax
call fcn.00513473
mov edi, eax
jmp 0x51ce35
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
push ecx
mov dword [edi + 8], eax
mov ebx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
call 0x58cf0b
push ebx
lea ecx, [esi + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0051c398
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 5
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call 0x58d196
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x2c], ebx
mov eax, dword [esi + 0x374]
push edi
mov dword [edi + 0x14], eax
mov dword [ebp - 0x18], ecx
call 0x58bba8
inc dword [esi + 0x374]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x18
push 6
add eax, 0xffffff2d
pop edi
cmp eax, edi
jl 0x51cd77
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
mov dword [ebp - 4], edi
je 0x51cee3
mov ecx, eax
call fcn.00513473
mov edi, eax
jmp 0x51cee5
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x24], esp
push ecx
mov dword [edi + 8], 0xcc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x5155a0
call 0x58d204
push ebx
lea ecx, [esi + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0051c398
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 7
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call 0x58d196
and dword [edi + 0x2c], 0
mov ecx, dword [ebp - 0x18]
push 1
pop eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x374]
and dword [edi + 0x34], 0
push edi
mov dword [edi + 0x14], eax
call 0x58bba8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret