Function at 0x405750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00476002
mov ebx, dword [eax + 4]
mov ecx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x50], eax
xor ebp, ebp
push ebp
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x1c]
push 0x113e
push eax
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xbc]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4057f6
push 0x111
mov ecx, ebx
call fcn.0040e720
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
mov edi, dword [esp + 0x50]
cmp edi, ebp
je 0x405a12
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], ebp
call fcn.004246b0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push 0x8000
push ecx
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.00424e20
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ebp
push ecx
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 2
call fcn.00424e20
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push eax
call fcn.00401570
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [ebp], eax
call fcn.00410470
lea edx, [esp + 0x10]
lea ecx, [esi + 0xc0]
push edx
call fcn.00403cc0
lea eax, [esp + 0x14]
lea ecx, [esi + 0xc4]
push eax
call fcn.00403cc0
mov ebp, dword [esp + 0x68]
mov eax, dword [ebp]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x4058de
cmp dword [ebp + 4], ebx
jne 0x4058de
mov ecx, dword [esp + 0x64]
push ebp
push ecx
mov ecx, esi
call fcn.00404250
jmp 0x4058e9
mov edx, dword [esi + 0x1c]
push ebp
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4059b3
mov edi, vtable.CMenu.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
mov byte [esp + 0x5c], 3
call fcn.00476002
mov eax, dword [eax + 0xc]
push 0x87
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [esp + 0x20]
call fcn.00462ea3
push 0x87
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00405320
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00462e7b
mov edx, dword [esi + 0x1c]
push ebp
push edx
mov dword [esi + 0xc8], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
call fcn.00476002
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xdd4]
test ecx, ecx
je 0x405987
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 4]
push 3
push 0x8011
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push 0
push esi
push ecx
mov ecx, dword [esi + 0xc8]
push edx
push 0
call fcn.0045e4eb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
mov dword [esp + 0x1c], edi
call fcn.00462efa
jmp 0x4059c3
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004055f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 1
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4059e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call fcn.004246d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x5c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x405a12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 8