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

Disassembly:
push 0xffffffffffffffff
push 0x101d80aa
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
push 0x4c
xor esi, esi
lea eax, [esp + 0xa4]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xa8], 0x50
call sub.MSVCR80.dll_memset
mov eax, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
mov dword [esp + 0xa0], 0x10
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0x41c
push eax
call ebp
mov edi, dword [esp + 0xbc]
push esi
push esi
push 0x418
push edi
call ebp
cmp eax, esi
mov dword [esp + 0x1c], eax
jle 0x10084ca2
push esi
push esi
push 0x52e
push edi
call ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2a0], esi
cmp eax, esi
setne cl
mov byte [ebx + 8], cl
mov byte [esp + 0x2a0], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], eax
xor eax, eax
push edx
push edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
jle 0x10084c75
xor eax, eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
lea eax, [esp + 0xf0]
push eax
push esi
push 0x417
push edi
call ebp
test byte [esp + 0xf8], 8
jne 0x10084c60
lea ecx, [esp + 0x2c]
push ecx
push esi
xor eax, eax
push 0x41d
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call ebp
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0x34]
mov bl, al
shr bl, 2
and bl, 1
cmp edx, dword [esp + 0x44]
jg 0x10084a9e
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x48]
jle 0x10084c60
test ah, 1
je 0x10084acf
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x10084c60
mov eax, dword [esp + 0x18]
push 0
push 0
push 0x800
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x10084c60
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 8], 0
push 0x18e
lea edx, [esp + 0x10a]
push 0
mov word [esp + 0x10c], 0
push edx
je 0x10084b87
call sub.MSVCR80.dll_memset
push 0x30
lea eax, [esp + 0x7c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0x18
mov dword [esp + 0x6c], 0x30
call fcn.10030fc0
test al, al
je 0x10084b25
mov dword [esp + 0x6c], 0x2c
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x6c]
push edx
push 1
push esi
lea ecx, [esp + 0x110]
push eax
mov dword [esp + 0x80], 0x14
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x80]
xor eax, eax
test bl, bl
sete al
push ecx
mov ecx, dword [esp + 0x1c]
push edx
or eax, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x10084c60
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x100]
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea esi, [esp + 0x10c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
push 0x43f
mov eax, esi
push edi
mov dword [esp + 0x5c], 0x20
mov dword [esp + 0x60], 2
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0xc8
call ebp
cmp eax, 0xffffffff
je 0x10084bf9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10084c40
mov edx, dword [esp + 0xf4]
mov eax, dword [0x102a95d4]
push 0xc8
lea ecx, [esp + 0x108]
push ecx
push edx
push eax
mov esi, 0x1022fcf8
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
jle 0x10084c40
cmp word [esp + ecx*2 + 0x104], 0xa
je 0x10084c39
add ecx, 1
cmp ecx, eax
jl 0x10084c25
jmp 0x10084c40
lea esi, [esp + ecx*2 + 0x106]
mov ecx, dword [esp + 0xf4]
mov eax, dword [esp + 0x18]
xor edx, edx
test bl, bl
sete dl
push esi
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, dword [esp + 0x24]
add esi, 1
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
jl 0x10084a13
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x10084ca6
test esi, esi
je 0x10084c8f
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esp + 0x2a0], 0xffffffff
xor al, al
jmp 0x10084cb5
mov dword [ebx], esi
mov dword [esp + 0x2a0], 0xffffffff
mov al, 1
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.101d19cc
add esp, 0x290
ret