Function at 0x415500
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x430
mov eax, dword [0x6eed24]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x434]
push ebx
push ebp
push esi
push edi
push 0x110
mov dword [esp + 0x18], eax
mov ebp, 0x64
lea eax, [esp + 0x124]
mov dword [esp + 0x120], 0x114
push 0
push eax
call fcn.004b40a0
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4155f0
cmp dword [esp + 0x120], 6
jb 0x4155f0
xor ebx, ebx
mov dword [esp + 0x108], 0x14
push str.comctl32.dll
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4155f0
push str.DllGetVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4155bf
mov esi, 0x80004001
jmp 0x4155cb
lea ecx, [esp + 0x108]
push ecx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
js 0x4155df
mov ebx, dword [esp + 0x10c]
jmp 0x4155e7
cmp esi, 0x80004001
je 0x4155f0
test esi, esi
js 0x4155f0
cmp ebx, 6
jae 0x4155f5
mov ebp, 0x50
push 0x60
lea eax, [esp + 0x78]
mov dword [esp + 0x74], ebp
push 0
push eax
call fcn.004b40a0
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
mov dword [esp + 0x74], 0x10
mov eax, dword [ebx + 4]
push ecx
push dword [eax + 0xc]
push 0x41c
push dword [eax]
call ebp
mov edi, dword [esp + 0x90]
push 0
push 0
push 0x418
push edi
call ebp
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x415917
push 0
push 0
push 0x52e
push edi
call ebp
test eax, eax
mov dword [esp + 0x18], eax
setne al
mov byte [ebx + 8], al
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
xor eax, eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
lea eax, [esp + 0xf8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
xor ebx, ebx
mov edi, edi
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
lea eax, [esp + 0xd4]
push eax
push ebx
push 0x417
push edi
call ebp
test byte [esp + 0xdc], 8
jne 0x4158ee
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xe8]
push eax
push ebx
push 0x41d
push edi
call ebp
mov ecx, dword [esp + 0xdc]
mov al, cl
shr al, 2
and al, 1
mov byte [esp + 0x13], al
mov eax, dword [esp + 0xf0]
cmp eax, dword [esp + 0x100]
jg 0x415749
mov eax, dword [esp + 0xf4]
cmp eax, dword [esp + 0x104]
jle 0x4158ee
test ch, 1
je 0x415772
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4158ee
push 0
push 0
push 0x800
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x4158ee
mov eax, dword [esp + 0x14]
push 0x190
push 0
cmp byte [eax + 8], 0
je 0x41580b
lea eax, [esp + 0x2b4]
push eax
call fcn.004b40a0
push 0x30
lea eax, [esp + 0x50]
push 0
push eax
call fcn.004b40a0
add esp, 0x18
mov dword [esp + 0x40], 0x30
call fcn.00413940
test al, al
je 0x4157be
mov dword [esp + 0x40], 0x2c
lea eax, [esp + 0x2ac]
mov dword [esp + 0x44], 0x14
mov dword [esp + 0x64], eax
lea eax, [esp + 0x40]
push eax
push 1
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x78], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
push dword [esp + 0x64]
movzx eax, byte [esp + 0x17]
push dword [esp + 0x58]
xor eax, 1
or eax, 0x10
push eax
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x4158ee
lea eax, [esp + 0x124]
push eax
call fcn.004b40a0
add esp, 0xc
mov dword [esp + 0x28], 0
lea ebp, [esp + 0x11c]
mov dword [esp + 0x2c], 0
mov eax, ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xdc]
mov dword [esp + 0x3c], 0
push 0x43f
push edi
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 2
mov dword [esp + 0x4c], 0xc8
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x415888
cmp word [esp + 0x11c], 0
jne 0x4158d0
push 0xc8
lea eax, [esp + 0x120]
mov ebp, 0x649c60
push eax
push dword [esp + 0xe0]
push dword [0x6f8c64]
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
jle 0x4158d0
cmp word [esp + ecx*2 + 0x11c], 0xa
je 0x4158c5
inc ecx
cmp ecx, eax
jl 0x4158b3
jmp 0x4158d0
lea ebp, [esp + 0x11e]
lea ebp, [ebp + ecx*2]
movzx eax, byte [esp + 0x13]
push ebp
push dword [esp + 0xdc]
xor eax, 1
push eax
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x4156a0
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x41591b
test esi, esi
je 0x41590f
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x415923
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov al, 1
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2558
add esp, 0x430
ret 4