Function at 0x51a150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54effb
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b1700]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea esi, [edi + 8]
xor eax, eax
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
push eax
mov ecx, esi
call fcn.00519760
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00519760
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00519760
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x51a4eb
call fcn.004f6492
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x51a4f8
call fcn.004f6492
cmp esi, esi
je 0x51a501
call fcn.004f6492
mov ecx, dword [esp + 0xc0]
mov edx, ebx
push ecx
sub edx, ebp
sar edx, 4
push edx
push ebx
push ebp
call fcn.00519a10
add esp, 0x10
mov dword [esp + 0x30], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x8c