Function at 0x51a490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac29c
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push ebx
push esi
push edi
mov eax, dword [0x60f074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
cmp dword [ebx + 0x84], 0
jne 0x51a5f3
cmp dword [ebx + 0xc0], 0
je 0x51a5f3
mov ecx, dword [ebp + 8]
call fcn.005202c0
mov esi, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [esi + 0x30]
test eax, eax
js 0x51a507
cmp eax, dword [edi + 0x2c]
jge 0x51a507
mov eax, dword [esi + 0x34]
test eax, eax
js 0x51a507
cmp eax, dword [edi + 0x30]
jl 0x51a5f3
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x51a523
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WindowFromPoint]
jmp 0x51a525
xor eax, eax
cmp eax, dword [ebx + 0x98]
jne 0x51a5f3
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, edi
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x24], eax
call fcn.004dd8b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [eax + 0x84]
call fcn.004ed110
mov edi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x84]
call fcn.004ed110
push eax
mov ecx, edi
call dword [esi + 0x60]
mov esi, eax
test esi, esi
je 0x51a5f3
cmp esi, dword [ebx + 0x44]
je 0x51a5f3
cmp dword [ebp - 0x10], 0
jne 0x51a609
cmp dword [0x61a268], 1
jne 0x51a5e0
cmp dword [0x61a250], 3
jg 0x51a5e0
push 3
push 0x4c9
push str.f:my_lab_tabexplorerextab_masterlibrary_viewcontrolsmenumenu_controller.cpp
lea ecx, [ebp - 0xf0]
call fcn.0046c100
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.Check_failed:_false.
mov dword [ebp - 0x14], ebx
call fcn.00403840
jmp 0x51a5e3
mov ebx, dword [ebp - 0x14]
test bl, 1
je 0x51a5f3
lea ecx, [ebp - 0xf0]
call fcn.0046c520
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0xc0]
push 0
call fcn.004e78a0
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x10]
push 2
mov dword [ebx + 0xc0], ecx
call fcn.004e78a0
mov ecx, dword [ebx + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
mov byte [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004dd8b0
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x2c]
push ecx
lea eax, [ecx - 1]
push eax
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
call fcn.004d6480
add esp, 4
mov ecx, ebx
push eax
call fcn.0051a2a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x84]
call fcn.004ed110
mov ecx, esi
movzx eax, byte [eax + 0x101]
push eax
push dword [ebp - 0x20]
call fcn.004ed9d0
push 3
push esi
mov ecx, ebx
mov dword [esi + 0x88], ebx
call fcn.005195a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8