Function at 0x51c740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ad2
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0x94]
call fcn.00404cb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.0051e6c0
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
push str.Page__d_of__d
lea edx, [ebp - 0x94]
push edx
call fcn.0040f510
add esp, 0x10
lea ecx, [ebp - 0x90]
call fcn.00404cb0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa4]
push eax
call fcn.0051e700
push 0x5c9354
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.0051e9e0
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x90]
call fcn.00404d10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00404cf0
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
push 7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00535012
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00534cd8
lea ecx, [ebp - 0x14]
call fcn.004d9ca0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0xb8]
add ecx, 0x250
call fcn.004d9d30
mov dword [ebp - 0x7c], 0x2bc
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004d9d10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0x98], eax
push 1
mov ecx, dword [ebp + 8]
call fcn.00534b9e
mov dword [ebp - 0xa8], eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
call eax
lea ecx, [ebp - 0x94]
call fcn.004ce110
movzx ecx, al
test ecx, ecx
jne 0x51c8fd
push 0x824
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
call fcn.004d9f10
lea ecx, [ebp - 0x90]
call fcn.004ce110
movzx ecx, al
test ecx, ecx
jne 0x51c927
push 0x826
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
call fcn.004d9f10
mov ecx, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00534b9e
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
call eax
lea ecx, [ebp - 0x14]
call fcn.0053563e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004d9cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00404cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00404cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret 8