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

Disassembly:
sub esp, 0xca4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x488]
push eax
mov eax, str.Hotkey
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
call fcn.004a55f0
lea ecx, [esp + 0x89c]
push ecx
mov eax, str.Hotkey
call fcn.004a55f0
lea edx, [esp + 0x488]
push edx
lea eax, [esp + 0x8a0]
mov ecx, str.Details
call fcn.00401730
mov edx, dword [esp + 0xcbc]
mov eax, dword [edx]
cmp eax, dword [esp + 0xcc0]
jae 0x50e2a5
mov ecx, dword [edx]
mov edi, dword [esp + 0xcb8]
lea eax, [ecx + ecx*4]
movzx ebp, word [edi + eax*2]
cmp bp, 0xffff
mov ebx, dword [edi + eax*2 + 2]
lea eax, [edi + eax*2]
mov eax, dword [eax + 6]
mov dword [esp + 0x20], eax
jge 0x50dfee
neg ebp
movzx ebp, bp
add ecx, 1
test ebx, ebx
mov dword [edx], ecx
je 0x50e276
test bp, bp
mov dword [esp + 0x28], ebx
jl 0x50e21e
mov edx, dword [esp + 0xcc8]
xor esi, esi
xor eax, eax
test edx, edx
jbe 0x50e038
mov edi, dword [esp + 0xcc4]
lea ecx, [edi + 4]
cmp word [ecx], bp
je 0x50e032
add eax, 1
add ecx, 6
cmp eax, edx
jb 0x50e021
jmp 0x50e038
lea ecx, [eax + eax*2]
mov esi, dword [edi + ecx*2]
push 1
push str.Enabled
mov eax, str.Hotkey
call fcn.00480fe0
test al, al
je 0x50e084
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
movsx eax, bp
push eax
call edx
mov edi, eax
lea ecx, [esp + 0x488]
call fcn.0051ed40
test eax, eax
je 0x50e072
mov esi, eax
jmp 0x50e084
push esi
lea ecx, [esp + 0x48c]
call fcn.0051ebe0
cmp eax, 0xffffffff
jne 0x50e0b8
test esi, esi
je 0x50e0b8
lea eax, [esp + 0x78]
push eax
push esi
call fcn.0050b5a0
lea ecx, [esp + 0x78]
push ecx
push ebx
push str._s_t_s
mov esi, 0x104
lea edi, [esp + 0x28c]
call fcn.004af0d0
mov edx, edi
add esp, 0xc
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
movsx ebp, bp
push ebp
push 0
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
or eax, 0xffffffff
cmp dword [esp + 0x20], eax
je 0x50e28f
cmp dword [0x733e60], eax
jne 0x50e10e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.wine_get_unix_file_name
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
neg eax
push esi
mov dword [0x733e60], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x733e60], 1
je 0x50e28f
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esp + 0x7c], 6
setae al
test al, al
je 0x50e28f
movzx eax, word [esp + 0x20]
xor edi, edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0x70c6ec
call dword [0x70c6f4]
test al, al
je 0x50e209
push 0x30
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.006a1300
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push edi
push ebp
push esi
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x5c], 0x80
mov dword [esp + 0x84], edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
test eax, eax
jne 0x50e1af
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], 0x1c
mov dword [esp + 0x38], 0x10
call dword [sym.imp.USER32.dll_GetMenuInfo]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x2c]
and edx, 0x7bffffff
push eax
or edx, 0x4000000
push esi
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 0x6dbd28
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x50e28f
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edx, dword [esp + 0xcc8]
mov ecx, dword [esp + 0xcc0]
push 1
push edx
mov edx, dword [esp + 0xcc4]
mov esi, eax
mov eax, dword [esp + 0xccc]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
push edi
mov edx, esi
call fcn.0050df60
mov al, byte [esp + 0xccc]
mov ecx, dword [esp + 0x14]
neg al
push ebx
push esi
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x10
push eax
push ecx
jmp 0x50e289
test bp, bp
jl 0x50e2a5
mov edx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0xcc0]
mov edx, dword [esp + 0xcbc]
cmp dword [edx], eax
jb 0x50dfc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xca4
ret 0x18