Function at 0x40e370
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e4078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
push edi
push 0
push 0
mov esi, ecx
mov ecx, dword [eax + 0x1c]
push 0x31
push ecx
call ebx
push eax
call fcn.004cd23d
mov dword [esp + 0x1c], eax
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x51829c
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.00402490
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 3
mov byte [esp + 0x3c], 1
call fcn.004c9449
test eax, eax
je 0x40e406
push 3
push eax
lea ecx, [esp + 0x18]
call fcn.00402090
call fcn.004c86da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x51809c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.00402490
push 0x28
push 0
push 0x19f
push 0x14e
lea eax, [esi + 0x6e0]
push eax
lea edi, [esi + 0x7d0]
push edi
mov ecx, esi
call fcn.0040c100
push 0x28
push 0x2a
push 0x130
push 0x14f
lea eax, [esi + 0x730]
push eax
lea ebp, [esi + 0x884]
push ebp
mov ecx, esi
call fcn.0040c100
push 0xf000
mov ecx, esi
call fcn.004dc1cd
lea ecx, [esi + 0x274]
push 0xf000
call fcn.004d5bc5
push 0
push 0
lea eax, [esi + 0x274]
push eax
mov ecx, esi
call fcn.004dc265
push 0xf000
mov ecx, edi
call fcn.004d5bc5
push 0x1000
lea eax, [esi + 0x274]
push eax
push edi
mov ecx, esi
call fcn.0040c210
push 0xf000
mov ecx, ebp
call fcn.004d5bc5
push 0x2000
push edi
push ebp
mov ecx, esi
call fcn.0040c210
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0x418
push eax
call ebx
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
add eax, 0xfffffffe
push eax
push 0x41d
push edx
call ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x5a0]
add eax, 0x24
lea ecx, [esi + 0x5a0]
push 0x144
mov dword [esp + 0x2c], eax
push edi
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push 0x50000202
push eax
call dword [edx + 0x130]
mov ecx, dword [ebp + 0x1c]
push 0
push 0
push 0x418
push ecx
call ebx
lea edx, [esp + 0x20]
push edx
add eax, 0xfffffffe
push eax
mov eax, dword [ebp + 0x1c]
push 0x41d
push eax
call ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x5f0]
mov edi, eax
add eax, 0x24
push 0x145
mov dword [esp + 0x2c], eax
push ebp
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x5f0]
push 0x50000202
push eax
call dword [edx + 0x130]
mov edx, dword [esi + 0x780]
push 0x150
push ebp
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
add edi, 0x130
mov dword [esp + 0x34], edi
lea ecx, [esi + 0x780]
push 0x50000103
add edi, 0xffffffd8
push ebp
mov dword [esp + 0x34], edi
call dword [edx + 0x130]
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0x31
push ecx
call ebx
push eax
call fcn.004cd23d
test eax, eax
je 0x40e5db
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x5bc]
push 1
push eax
push 0x30
push edx
call ebx
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0x31
push eax
call ebx
push eax
call fcn.004cd23d
test eax, eax
je 0x40e602
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x60c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0x31
push edx
call ebx
push eax
call fcn.004cd23d
test eax, eax
je 0x40e629
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x79c]
push 0x30
push eax
call ebx
mov ecx, dword [esi + 0x79c]
push 0
push 1
push 0xf1
push ecx
call ebx
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x40e655
xor eax, eax
jmp 0x40e658
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x6fc]
push 1
push eax
push 0x30
push edx
call ebx
test edi, edi
je 0x40e66d
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x74c]
push 1
push edi
push 0x30
push eax
call ebx
push 0
lea ecx, [esi + 0x6e0]
call fcn.004c803d
push 0
lea ecx, [esi + 0x730]
call fcn.004c803d
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.004c9b25
test eax, eax
jne 0x40e6ae
or eax, 0xffffffff
jmp 0x40e6bf
mov edx, dword [eax + 4]
push 0
push 0x4ec1
push edx
call dword [sym.imp.USER32.dll_GetMenuState]
shr eax, 3
and eax, 1
mov dword [esi + 0xe0], eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x40e6ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x2c
ret 4