Function at 0x42be80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x130
push esi
push edi
mov edi, dword [esp + 0x140]
mov esi, ecx
test edi, edi
mov dword [eax], 0
je 0x42c0b2
mov dword [eax], 1
mov eax, dword [esp + 0x144]
mov ecx, dword [esi + 0x118]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [esp + 0x144]
push eax
push edi
push ebp
push ecx
call ebx
mov edx, dword [esi + 0xb0]
push eax
mov eax, dword [esi + 0xc8]
push 0
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esi + 0x40]
push edi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x42c09a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42bf0d
test byte [esi + 0x54], 2
jne 0x42bf0d
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov al, byte [esi + 0x80]
mov dword [esi + 0x40], edi
test al, 2
jne 0x42c09a
mov edx, dword [esi + 4]
push 0
push 0
push 0xb
push edx
call ebx
mov eax, dword [esi + 4]
push 0
push 0
push 0x418
push eax
call ebx
test eax, eax
jle 0x42bf51
mov edi, eax
mov ecx, dword [esi + 4]
push 0
push 0
push 0x416
push ecx
call ebx
dec edi
jne 0x42bf3f
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42c076
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebp, ebp
mov dword [esp + 0x24], eax
test eax, eax
jle 0x42c076
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x2c]
push eax
push 1
xor edi, edi
push ebp
push ecx
mov dword [esp + 0x3c], 0x2c
mov dword [esp + 0x40], 0x15
mov dword [esp + 0x44], edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x64
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x63
jle 0x42bfe5
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x2c]
push eax
push 1
push ebp
push ecx
mov dword [esp + 0x44], 4
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov word [esp + 0x78], di
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x14], edx
and al, 3
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x10]
neg al
mov dword [esp + 0x1c], edx
push ecx
sbb al, al
mov dword [esp + 0x24], edx
mov edx, dword [esi + 4]
and al, 0xfc
push 0xffffffffffffffff
add al, 4
push 0x443
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 0x18
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call ebx
mov edx, dword [esi + 4]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x78]
push ecx
push ebp
push 0x440
push edx
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x6c], 2
mov dword [esp + 0x80], eax
call ebx
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x42bf71
mov eax, dword [esi + 4]
push 0
push 1
push 0xb
push eax
call ebx
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, esi
call fcn.0042ec80
mov eax, dword [esp + 0x28]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x130
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x130
ret 0x10