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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x434020]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
mov esi, edx
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, ecx
je 0x4102f1
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x4104dd
test byte [edi + 0x86], 1
je 0x410304
cmp dword [edi + 0x44], ebx
je 0x410304
call fcn.004146d0
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x410318
test byte [edi + 0x58], 2
jne 0x410318
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test byte [edi + 0x84], 2
mov dword [edi + 0x44], esi
jne 0x4104d8
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0xb
push eax
call ebp
mov ecx, dword [edi + 4]
push ebx
push ebx
push 0x418
push ecx
call ebp
cmp eax, ebx
jle 0x410362
mov esi, eax
jmp 0x410350
mov edx, dword [edi + 4]
push ebx
push ebx
push 0x416
push edx
call ebp
sub esi, 1
jne 0x410350
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x4104b6
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x4104b6
push 0x30
lea eax, [esp + 0x38]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x30
call fcn.00405610
test al, al
je 0x4103ab
mov dword [esp + 0x34], 0x2c
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x34]
push edx
push 1
push esi
lea ecx, [esp + 0x84]
push eax
mov dword [esp + 0x48], 0x15
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 0x64
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x63
jle 0x41040b
mov eax, dword [edi + 0x44]
lea edx, [esp + 0x34]
push edx
push 1
push esi
push eax
mov dword [esp + 0x4c], 4
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov word [esp + 0x78], bx
mov ecx, dword [esp + 0x40]
xor eax, eax
and cl, 3
neg cl
lea edx, [esp + 0x64]
push edx
sbb cl, cl
mov dword [esp + 0x70], eax
push 0xffffffffffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 4]
and cl, 0xfc
push 0x443
add cl, 4
push eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
mov byte [esp + 0x7c], cl
mov byte [esp + 0x7d], 0x18
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call ebp
xor eax, eax
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
push 0x440
lea ecx, [esp + 0x84]
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 2
mov dword [esp + 0x3c], ecx
call ebp
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x410382
mov ecx, dword [edi + 4]
push ebx
push 1
push 0xb
push ecx
call ebp
mov edx, dword [edi + 4]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424bfa
add esp, 0x13c
ret