Function at 0x506390
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4cd963
call 0x555c54
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00504599
push 0x20
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.00506fdd
push 0x40
mov dword [esi + 4], 0x87
mov dword [esi + 0x37c], edi
mov dword [esi + 0x2e0], edi
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x5063f2
mov ecx, eax
call fcn.004f6233
mov edi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [edi + 8], 0xcb
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5005cc
call 0x56c491
lea ecx, [esi + 0x1a8]
push ebx
call 0x52e4ed
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004fd8e8
xor ebx, ebx
push eax
inc ebx
lea ecx, [edi + 0x30]
mov dword [ebp - 4], ebx
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call 0x56c423
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 + 0x37c]
push edi
mov dword [edi + 0x14], eax
call 0x56b166
inc dword [esi + 0x37c]
lea eax, [esi + 0x380]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
push 0x58
call 0x56c164
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x506495
mov ecx, eax
call fcn.004f369b
mov edi, eax
jmp 0x506497
xor edi, edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
push ecx
add eax, 0x25c
mov ebx, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [edi + 8], eax
mov ecx, esp
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x14]
call 0x56c198
push ebx
lea ecx, [esi + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x38]
mov dword [ebp - 4], 3
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x56c423
xor ebx, ebx
mov dword [edi + 0x2c], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x3c], ebx
mov eax, dword [esi + 0x37c]
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 0x14], eax
mov dword [edi + 0x30], 0x25c
mov dword [edi + 0x34], 0x27b
mov dword [ebp - 0x1c], ecx
call 0x56b166
inc dword [esi + 0x37c]
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 8
cmp dword [ebp - 0x10], 0x20
jl 0x506474
push 0x40
call 0x56c164
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov dword [ebp - 4], 4
je 0x50655a
mov ecx, eax
call fcn.004f6233
mov edi, eax
jmp 0x50655c
xor edi, edi
or dword [ebp - 4], 0xffffffff
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push ecx
mov dword [edi + 8], 0xcc
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5005a4
call 0x56c491
push ebx
lea ecx, [esi + 0x1a8]
call 0x52e4ed
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004fd8e8
push eax
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 5
call 0x56c55c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call 0x56c423
and dword [edi + 0x2c], 0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
push edi
inc eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x37c]
mov dword [edi + 0x14], eax
call 0x56b166
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret