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

Disassembly:
push 0xffffffffffffffff
push 0x4e8268
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.004d13dd
mov dword [esp + 0x1c], eax
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x51c29c
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call fcn.004024d0
call fcn.004cc87a
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.004cd5e9
test eax, eax
je 0x40eb96
push 3
push eax
lea ecx, [esp + 0x18]
call fcn.004020d0
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x51c09c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.004024d0
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.0040c860
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.0040c860
push 0xf000
mov ecx, esi
call fcn.004e036d
lea ecx, [esi + 0x274]
push 0xf000
call fcn.004d9d65
push 0
push 0
lea eax, [esi + 0x274]
push eax
mov ecx, esi
call fcn.004e0405
push 0xf000
mov ecx, edi
call fcn.004d9d65
push 0x1000
lea eax, [esi + 0x274]
push eax
push edi
mov ecx, esi
call fcn.0040c970
push 0xf000
mov ecx, ebp
call fcn.004d9d65
push 0x2000
push edi
push ebp
mov ecx, esi
call fcn.0040c970
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]
lea eax, [edi + 0x130]
lea ecx, [eax - 0x28]
push 0x150
add eax, 2
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], ecx
lea ecx, [esi + 0x780]
push 0x50000103
push ebp
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.004d13dd
test eax, eax
je 0x40ed6e
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.004d13dd
test eax, eax
je 0x40ed95
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.004d13dd
test eax, eax
je 0x40edbc
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 0x40ede8
xor eax, eax
jmp 0x40edeb
mov eax, dword [edi + 4]
mov edx, dword [esi + 0x6fc]
push 1
push eax
push 0x30
push edx
call ebx
test edi, edi
je 0x40ee00
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.004cc1dd
push 0
lea ecx, [esi + 0x730]
call fcn.004cc1dd
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.004cdcc5
test eax, eax
jne 0x40ee41
or eax, 0xffffffff
jmp 0x40ee52
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 0x40ee81
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 0x40eea3
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 0x40eec9
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