Function at 0x514560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4829aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov ebx, dword [ebp + 4]
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 8]
lea esi, [ebx + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov ecx, eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [eax]
lea eax, [esi + 0x18]
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x20], edx
call fcn.005414c2
lea ecx, [esi + 0x1c]
mov dword [esp + 0x3c], 1
push ecx
lea ecx, [esp + 0x34]
call fcn.005414c2
mov eax, dword [ebx]
mov dword [esp + 0x3c], 2
cmp eax, edi
mov dword [ebp + 4], eax
je 0x51463f
mov dword [eax + 4], edi
jmp 0x514642
mov dword [ebp + 8], edi
mov ecx, esi
call fcn.004f0000
add esi, 0x20
mov edx, edi
dec edi
test edx, edx
jne 0x514642
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], eax
jne 0x5146a6
mov ebx, dword [ebp + 4]
xor edi, edi
cmp ebx, edi
je 0x51468f
jmp 0x514671
xor edi, edi
lea esi, [ebx + 8]
push 0
mov ecx, esi
call fcn.004f5210
add esi, 0x20
mov ecx, edi
dec edi
test ecx, ecx
jne 0x514674
mov ebx, dword [ebx]
test ebx, ebx
jne 0x51466f
xor edi, edi
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
call fcn.005418fa
mov dword [ebp + 0x14], edi
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
lea eax, [esi + 8]
mov dword [esi], edx
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebp, dword [esp + 0x28]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], ebp
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [eax], ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x18]
call fcn.005414c2
lea edx, [esp + 0x30]
lea ecx, [esi + 0x1c]
push edx
mov byte [esp + 0x40], 3
call fcn.005414c2
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], 4
call fcn.00541342
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0
call fcn.00541342
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4