Function at 0x5003f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4cceec
call 0x555c54
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
call fcn.00504599
push 0xffffffffffffff9d
lea edi, [esi + 0x2e8]
pop eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
mov dword [esi + 0x2f8], ebx
call fcn.00500f94
push 0x50d798
lea ecx, [ebp - 0x30]
mov dword [esi + 4], 0x8c
mov dword [esi + 0x2e0], ebx
call 0x56c491
push 0x40
mov dword [ebp - 4], ebx
mov dword [esi + 0x2fc], ebx
call 0x56c164
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x50031f
mov ecx, eax
call fcn.004f6233
jmp 0x500321
xor eax, eax
push ecx
mov dword [ebp - 0x18], eax
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5005cc
mov dword [eax + 8], 0xcb
call 0x56c491
lea ecx, [esi + 0x1a8]
push edi
call 0x52e4ed
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004fd8e8
mov edi, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
call 0x56c55c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call 0x56c423
xor eax, eax
mov dword [edi + 0x2c], ebx
inc eax
lea ecx, [esi + 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x2fc]
push edi
mov dword [edi + 0x14], eax
mov dword [ebp - 0x18], ecx
call 0x56b166
inc dword [esi + 0x2fc]
lea eax, [esi + 0x304]
mov dword [ebp - 0x10], 0x1f6
mov dword [ebp - 0x14], eax
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x5003c9
mov ecx, eax
call fcn.004f6233
jmp 0x5003cb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
add ecx, 0xfffffedd
mov byte [ebp - 4], bl
push ecx
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
add eax, 0xfffffffc
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call 0x56c198
push edi
lea ecx, [esi + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004fd8e8
mov edi, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
lea ecx, [edi + 0x30]
call 0x56c55c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call 0x56c423
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x2c], ebx
mov eax, dword [esi + 0x2fc]
push edi
mov dword [edi + 0x14], eax
call 0x56b166
inc dword [esi + 0x2fc]
push 0x8c
call 0x56c164
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x500467
mov ecx, eax
call fcn.004ef81c
jmp 0x500469
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
mov dword [eax + 8], ecx
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x34], esp
push dword [ebp - 0x14]
call 0x56c198
push edi
lea ecx, [esi + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004fd8e8
push eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
lea ecx, [eax + 0x38]
call 0x56c55c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call 0x56c423
mov eax, dword [ebp - 0x14]
push ecx
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
add eax, 4
mov ebx, esp
mov dword [ebp - 0x34], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call 0x56c198
push ebx
lea ecx, [esi + 0x1a8]
call 0x52e4ed
push edi
mov ecx, esi
call fcn.004fd8e8
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.004f044d
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 0x34]
add ecx, 0xfffffe0b
xor ebx, ebx
push ecx
push 0x500820
push eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call 0x569926
add esp, 0xc
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x2c]
push 0x50081c
push eax
call 0x56c72c
push 0x50081c
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call 0x56c6b8
push eax
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 8
call 0x56c55c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call 0x56c423
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call 0x56c423
mov eax, dword [esi + 0x2fc]
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 0x14], eax
mov dword [ebp - 0x18], ecx
call 0x56b166
inc dword [esi + 0x2fc]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x10
add eax, 0xfffffe0a
cmp eax, 4
jl 0x5003ad
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x5005b8
mov ecx, eax
call fcn.004f6233
jmp 0x5005ba
xor eax, eax
push ecx
mov dword [ebp - 0x1c], eax
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5005a4
mov dword [eax + 8], 0xcc
call 0x56c491
push edi
lea ecx, [esi + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004fd8e8
mov edi, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x30]
call 0x56c55c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call 0x56c423
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
mov dword [edi + 0x2c], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x2fc]
push edi
mov dword [edi + 0x14], eax
call 0x56b166
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call 0x56c423
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret