Function at 0x5015a4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4cd0e9
call 0x555c54
sub esp, 0x20
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00504599
push 0x20
lea edi, [ebx + 0x2e8]
pop ecx
xor esi, esi
push 0xffffffffffffff9d
pop eax
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [ebx + 0x368], esi
call fcn.0050245d
push 0x40
mov dword [ebx + 4], 0x78
mov dword [ebx + 0x36c], esi
mov dword [ebx + 0x2e0], esi
call 0x56c164
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x5013a6
mov ecx, eax
call fcn.004f6233
mov esi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
mov dword [esi + 8], 0xcb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5005cc
call 0x56c491
lea ecx, [ebx + 0x1a8]
push edi
call 0x52e4ed
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004fd8e8
xor edi, edi
push eax
inc edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call 0x56c423
and dword [esi + 0x2c], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov eax, dword [ebx + 0x36c]
lea ecx, [ebx + 0x14]
push esi
mov dword [esi + 0x14], eax
call 0x56b166
inc dword [ebx + 0x36c]
lea eax, [ebx + 0x374]
mov dword [ebp - 0x14], 0x335
mov dword [ebp - 0x10], eax
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x50144c
mov ecx, eax
call fcn.004f6233
mov esi, eax
jmp 0x50144e
xor esi, esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add eax, 0xfffffd9e
push ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
add eax, 0xfffffffc
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call 0x56c198
push edi
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
xor edi, edi
push esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
mov eax, dword [ebx + 0x36c]
lea ecx, [ebx + 0x14]
mov dword [esi + 0x14], eax
call 0x56b166
inc dword [ebx + 0x36c]
push 0x70
call 0x56c164
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, edi
mov dword [ebp - 4], 4
je 0x5014ec
mov ecx, eax
call fcn.004f08dd
mov esi, eax
jmp 0x5014ee
xor esi, esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
push ecx
mov dword [esi + 8], eax
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call 0x56c198
push edi
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [esi + 0x5c]
mov dword [ebp - 4], 5
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call 0x56c423
xor eax, eax
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
add eax, 0xc
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call 0x56c198
push edi
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 6
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call 0x56c423
mov eax, dword [ebp - 0x10]
push ecx
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
add eax, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call 0x56c198
push edi
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004fd8e8
mov dword [ebp - 4], 7
push eax
lea ecx, [esi + 0x48]
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call 0x56c423
mov eax, dword [ebp - 0x10]
and dword [esi + 0x50], 0
xor edi, edi
add eax, 8
inc edi
push eax
lea ecx, [esi + 0x68]
mov dword [esi + 0x4c], edi
call 0x56c55c
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 4
mov eax, dword [ebx + 0x36c]
push esi
lea ecx, [ebx + 0x14]
mov dword [esi + 0x14], eax
call 0x56b166
inc dword [ebx + 0x36c]
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x50164b
mov ecx, eax
call fcn.004ee98d
mov esi, eax
jmp 0x50164d
xor esi, esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add eax, 0xfffffd44
push ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
add eax, 4
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call 0x56c198
push edi
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 9
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call 0x56c423
and dword [esi + 0xc], 0
mov dword [esi + 0x10], 1
mov eax, dword [ebx + 0x36c]
lea ecx, [ebx + 0x14]
push esi
mov dword [esi + 0x14], eax
mov dword [ebp - 0x2c], ecx
call 0x56b166
inc dword [ebx + 0x36c]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 0x18
add eax, 0xfffffccb
cmp eax, 0x20
jl 0x50142b
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
mov dword [ebp - 4], 0xa
je 0x501706
mov ecx, eax
call fcn.004f6233
mov esi, eax
jmp 0x501708
xor esi, esi
or dword [ebp - 4], 0xffffffff
push ecx
mov edi, esp
mov dword [ebp - 0x28], esp
push ecx
mov dword [esi + 8], 0xcc
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x5005a4
call 0x56c491
push edi
lea ecx, [ebx + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004fd8e8
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0xb
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call 0x56c423
and dword [esi + 0x2c], 0
mov ecx, dword [ebp - 0x2c]
xor eax, eax
push esi
inc eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x36c]
mov dword [esi + 0x14], eax
call 0x56b166
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret