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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0xa0], 0x50
mov dword [esp + 0xa4], 0x10
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0xa0]
push ecx
push edx
push 0x41d
push eax
call edi
mov esi, dword [esp + 0xc0]
push 0
push 0
push 0x418
push esi
call edi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x435533
push 0
push 0
push 0x52e
push esi
call edi
test eax, eax
setne cl
mov dword [esp + 0x2c], eax
mov byte [ebx + 8], cl
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor edx, edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x3c], edx
xor ebx, ebx
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x435511
xor ecx, ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x28], ecx
push 0x417
mov dword [esp + 0x30], ecx
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], ecx
call edi
test byte [esp + 0x20], 8
jne 0x4354fc
lea ecx, [esp + 0x40]
push ecx
xor eax, eax
push ebx
mov dword [esp + 0x4c], eax
push 0x41d
mov dword [esp + 0x54], eax
push esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], eax
call edi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov bl, al
shr bl, 2
and bl, 1
cmp edx, ecx
jle 0x4354fc
test ah, 1
je 0x43536c
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4354fc
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x4354fc
mov edx, dword [ebp + 8]
mov al, byte [edx + 8]
test al, al
mov ecx, 0x31
je 0x43541b
xor eax, eax
mov byte [esp + 0x1b8], 0
lea edi, [esp + 0x1b9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov dword [esp + 0x70], 0x30
call fcn.00434a00
test al, al
je 0x4353bb
mov dword [esp + 0x70], 0x2c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push ecx
lea eax, [esp + 0x1bc]
push 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0x84], 0x14
mov dword [esp + 0xa8], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x84]
xor eax, eax
test bl, bl
sete al
push ecx
mov ecx, dword [esp + 0x10]
push edx
or eax, 0x10
push eax
push ecx
jmp 0x4354f0
xor edx, edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
xor eax, eax
mov byte [esp + 0xf0], 0
mov dword [esp + 0x5c], edx
lea edi, [esp + 0xf1]
rep stosd dword es:[edi], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
stosw word es:[edi], ax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
stosb byte es:[edi], al
push edx
lea edi, [esp + 0xf8]
push 0x441
mov eax, edi
push esi
mov dword [esp + 0x60], 0x20
mov dword [esp + 0x64], 2
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0xc8
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x43549c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4354dd
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4626f8]
push 0xc8
lea ecx, [esp + 0xf4]
push ecx
push edx
push eax
mov edi, 0x44e532
call dword [sym.imp.USER32.dll_LoadStringA]
xor ecx, ecx
test eax, eax
jle 0x4354dd
cmp byte [esp + ecx + 0xf0], 0xa
je 0x4354d6
inc ecx
cmp ecx, eax
jl 0x4354c5
jmp 0x4354dd
lea edi, [esp + ecx + 0xf1]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
xor edx, edx
test bl, bl
sete dl
push edi
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x4352c8
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x43553e
test esi, esi
je 0x43552b
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4