Function at 0x55978d
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x622cdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, vtable.CMenu.0
xor ebx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0xd0], ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [esp + 0x14]
call fcn.005debf4
cmp eax, ebx
jne 0x5597dd
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0xd0], 1
call fcn.005dec4b
xor eax, eax
jmp 0x5599f6
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x44], 2
jne 0x559805
mov eax, dword [esp + 0x38]
mov byte [esp + 0xf], 1
cmp eax, 5
jb 0x559809
mov byte [esp + 0xf], bl
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x10c]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
jle 0x5599d0
mov ebp, dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x559832
mov esi, dword [esp + 0x34]
push edi
mov ecx, esi
call fcn.005619a0
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x55990d
mov ecx, esi
call fcn.00554890
push eax
lea ecx, [esp + 0x20]
call fcn.005dd21e
mov ecx, esi
mov byte [esp + 0xd4], 2
call fcn.005548c0
push eax
lea ecx, [esp + 0x2c]
call fcn.005dd21e
mov eax, dword [esp + 0x28]
mov byte [esp + 0xd4], 3
cmp dword [eax - 8], ebx
je 0x55989f
push 0x6a2e28
lea ecx, [esp + 0x20]
call fcn.005dd540
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.005dd57c
mov eax, dword [esp + 0xdc]
mov ecx, dword [esi]
cmp eax, ebx
je 0x5598b8
mov edx, dword [ecx]
push 1
call dword [edx + 0xfc]
jmp 0x5598be
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x5598da
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push esi
push 0x10
push ecx
call ebp
cmp byte [esp + 0x13], bl
je 0x5598e7
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 2
call fcn.005dd1b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], bl
call fcn.005dd1b0
jmp 0x5599ba
cmp eax, ebx
sete al
cmp al, bl
je 0x559929
mov edx, dword [esp + 0x18]
push ebx
push ebx
push 0x800
push edx
call ebp
jmp 0x5599ba
mov ecx, esi
call fcn.00554890
push eax
lea ecx, [esp + 0x24]
call fcn.005dd21e
mov ecx, esi
mov byte [esp + 0xd4], 4
call fcn.005548c0
push eax
lea ecx, [esp + 0x28]
call fcn.005dd21e
mov eax, dword [esp + 0x24]
mov byte [esp + 0xd4], 5
cmp dword [eax - 8], ebx
je 0x559980
push 0x6a2e28
lea ecx, [esp + 0x24]
call fcn.005dd540
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.005dd57c
mov edi, dword [esp + 0x20]
mov ecx, esi
call fcn.00554780
mov edx, dword [esp + 0x18]
push edi
push eax
push ebx
push edx
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 4
call fcn.005dd1b0
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], bl
call fcn.005dd1b0
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x55982e
mov ebp, vtable.CMenu.0
lea ecx, [esp + 0x14]
call fcn.005dec21
mov esi, eax
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0xd4], 6
call fcn.005dec4b
mov eax, esi
pop edi
mov ecx, dword [esp + 0xc8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 4