Function at 0x4a9110
Capabilities:
Check os version

Disassembly:
sub esp, 0x268
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x264], eax
test byte [0x5b99ac], 1
mov eax, dword [esp + 0x26c]
push ebx
push ebp
mov ebp, dword [esp + 0x278]
push esi
push edi
mov dword [esp + 0x60], eax
jne 0x4a915e
or dword [0x5b99ac], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
setae cl
mov byte [0x5b99a8], cl
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [0x5b28a4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x5b289c]
lea edi, [ecx + eax]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x28]
xor bl, bl
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], 0xf
mov esi, 1
mov byte [esp + 0x34], 0
mov byte [esp + 0x13], 0
test al, 2
je 0x4a91d0
push 0x11
mov dword [esp + 0x4c], 4
call dword [sym.imp.USER32.dll_GetSysColor]
movzx esi, byte [0x5b99a8]
neg esi
sbb esi, esi
and esi, 0xd
mov byte [esp + 0x13], 1
add esi, 3
jmp 0x4a920c
push 7
test al, 0x51
je 0x4a91fc
mov edi, 0x1c
mov dword [esp + 0x4c], edi
call dword [sym.imp.USER32.dll_GetSysColor]
mov bl, byte [ebp + 0x10]
mov dword [esp + 0x3c], edi
mov edi, dword [0x5b28a4]
and bl, 1
mov byte [esp + 0x34], 1
jmp 0x4a920c
mov dword [esp + 0x4c], 4
call dword [sym.imp.USER32.dll_GetSysColor]
xor esi, esi
mov edx, dword [0x5b2898]
mov ecx, dword [0x5b28a0]
add ecx, edx
add ecx, dword [0x5b289c]
mov edx, dword [0x5b28a4]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x2c]
lea ecx, [ecx + edx + 7]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x5c], 0
test eax, eax
je 0x4a9258
cmp eax, 5
jae 0x4a9251
xor al, al
jmp 0x4a9754
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jne 0x4a938f
cmp dword [esp + 0x40], 0
je 0x4a938f
cmp byte [esp + 0x34], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jne 0x4a92b4
mov edx, dword [esp + 0x60]
push edx
lea esi, [esp + 0x18]
mov edi, ecx
call fcn.004a7be0
add esp, 4
cmp byte [esp + 0x34], 0
mov esi, dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [esp + 0x44], 6
je 0x4a9330
push 0
push 1
push 4
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004a88b0
add esp, 0x14
test al, al
jne 0x4a9301
push 4
call edi
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
call esi
inc dword [esp + 0x18]
push 0x10
call edi
mov edx, dword [ebp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call esi
mov eax, 1
add dword [esp + 0x18], eax
add dword [esp + 0x14], eax
test bl, bl
jne 0x4a932a
sub dword [esp + 0x20], eax
sub dword [esp + 0x1c], eax
jmp 0x4a9335
mov eax, 1
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004a88b0
add esp, 0x14
test al, al
jne 0x4a936b
push ebx
call edi
mov edx, dword [ebp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call esi
mov eax, dword [ebp + 0x18]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, dword [esp + 0x40]
jmp 0x4a96d3
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x1c], edx
mov edx, dword [0x5b28a0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x30]
add eax, edx
add eax, dword [0x5b2898]
cmp byte [esp + 0x34], 0
mov dword [esp + 0x20], ecx
mov ecx, dword [0x5b289c]
lea edx, [eax + ecx + 1]
mov dword [esp + 0x1c], edx
je 0x4a941b
push 0
push 0
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004a88b0
add esp, 0x14
test al, al
jne 0x4a940e
push 0x10
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
call ebx
mov eax, 1
add dword [esp + 0x18], eax
sub dword [esp + 0x20], eax
mov ecx, dword [esp + 0x3c]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004a88b0
add esp, 0x14
test al, al
jne 0x4a9457
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
call ebx
cmp dword [esp + 0x40], 0
jne 0x4a948c
mov ecx, dword [esp + 0x44]
add dword [esp + 0x24], ecx
mov eax, 1
sub dword [esp + 0x30], eax
add dword [esp + 0x28], eax
push 0x11
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call ebx
jmp 0x4a9752
mov ecx, 0x5b972c
call fcn.004a7700
cmp byte [esp + 0x34], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], edx
je 0x4a94ea
push 0x10
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call ebx
mov eax, 1
add dword [esp + 0x50], eax
sub dword [esp + 0x58], eax
sub dword [esp + 0x54], eax
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call ebx
mov edx, dword [ebp + 0x18]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp + 0x10]
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebx + 0xc]
shr eax, 3
and al, 1
test ecx, ecx
je 0x4a95f1
mov edx, dword [ebx + 0x14]
cmp edx, 0xffffffff
je 0x4a95f1
cmp byte [esp + 0x13], 0
je 0x4a9598
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4a956f
mov ecx, dword [esp + 0x28]
push 0
lea ecx, [ecx + edi + 1]
push ecx
mov ecx, dword [esp + 0x2c]
add ecx, edi
push ecx
mov ecx, dword [ebp + 0x18]
push ecx
push edx
push eax
call fcn.004a8f10
add esp, 0x18
jmp 0x4a9590
mov eax, dword [esp + 0x28]
lea eax, [eax + edi + 1]
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
mov eax, dword [ebp + 0x18]
push eax
push edx
push ecx
call fcn.004a90e0
add esp, 0x14
movzx eax, al
test eax, eax
jne 0x4a96d3
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push esi
lea edx, [ecx + edi + 1]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebx + 0x14]
add eax, edi
push eax
mov eax, dword [ebx + 0xc]
push ecx
push edx
push eax
call fcn.004a8fd0
add esp, 0x1c
test al, al
jne 0x4a96d3
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push esi
lea edx, [ecx + edi + 1]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebx + 0x14]
add eax, edi
push eax
mov eax, dword [ebx + 0xc]
push ecx
push edx
push eax
call fcn.004a8f10
add esp, 0x18
jmp 0x4a96d3
test al, al
jne 0x4a9608
cmp byte [ebx + 0x22], al
je 0x4a96d3
cmp byte [esp + 0x34], al
je 0x4a96d3
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov dl, byte [ebx + 0x22]
mov dword [esp + 0x64], ecx
test dl, dl
je 0x4a963f
mov edi, dword [0x5b289c]
add ecx, edi
add esi, edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], esi
jmp 0x4a964d
add ecx, edi
mov dword [esp + 0x64], ecx
lea ecx, [esi + edi + 1]
mov dword [esp + 0x68], ecx
test dl, dl
je 0x4a969e
mov ecx, dword [0x5b9734]
test ecx, ecx
je 0x4a969e
cmp byte [esp + 0x34], 0
je 0x4a9685
test al, al
jne 0x4a9685
mov edx, dword [0x5b9738]
mov ecx, dword [ebp + 0x18]
push 0x8800c6
push edx
lea eax, [esp + 0x6c]
push eax
push ecx
call fcn.004a79b0
add esp, 0x10
jmp 0x4a96d3
mov eax, dword [ebp + 0x18]
push 0x8800c6
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.004a79b0
add esp, 0x10
jmp 0x4a96d3
mov eax, dword [0x5b9730]
test eax, eax
je 0x4a96c0
mov edx, dword [ebp + 0x18]
push 0x8800c6
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.004a79b0
add esp, 0x10
jmp 0x4a96d3
mov ecx, dword [ebp + 0x18]
push 1
push 2
lea eax, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov edx, dword [esp + 0x44]
add dword [esp + 0x24], edx
mov esi, dword [ebx + 0x1c]
mov edx, esi
call fcn.004a7980
mov ecx, dword [ebp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_DrawTextW]
push 0x24
mov edi, eax
lea eax, [esp + 0x28]
push eax
push edi
push esi
push ecx
call ebx
cmp edi, 0xffffffff
je 0x4a9752
push 0xffffffffffffffff
lea edx, [esi + edi*2 + 2]
push edx
lea eax, [esp + 0x7c]
push 0x100
push eax
call fcn.0051957a
push 0x56b9ac
lea ecx, [esp + 0x88]
push 0x100
push ecx
call fcn.0051c0c0
mov edx, dword [0x5b28a8]
sub dword [esp + 0x48], edx
mov edx, dword [ebp + 0x18]
add esp, 0x1c
push 0x26
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x80]
push ecx
push edx
call ebx
mov al, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051916c
add esp, 0x268
ret