Function at 0x5d6da0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d72e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x7875dd], 0
je 0x5d6dd9
cmp dword [0x7a23fc], 0
jne 0x5d72b8
mov byte [0x7875dd], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x5d6e5a
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00414968
mov dword [ebp - 0x1b4], 0x11c
push 0x5d72f0
push 0x5d730c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00413980
mov ebx, eax
test ebx, ebx
je 0x5d6e32
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x5d6eb4
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x5d6eb4
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x5d6eb4
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00414968
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x98]
mov ecx, 0x94
call fcn.00406900
mov ecx, 0x80
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x1a0]
movzx ebx, byte [eax]
mov word [edx], bx
add edx, 2
inc eax
dec ecx
jne 0x5d6ea7
mov eax, dword [ebp - 0x1b0]
mov dword [0x7a23e0], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x7a23e4], eax
mov eax, 0x7a23ec
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.0040af84
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x7a23f0], dl
cmp eax, 2
sete al
mov byte [0x7a23f2], al
cmp byte [0x7a23f0], 0
je 0x5d6f13
movzx eax, word [ebp - 0x1a8]
mov dword [0x7a23e8], eax
jmp 0x5d6f1e
mov eax, dword [ebp - 0x1a8]
mov dword [0x7a23e8], eax
mov byte [0x7a23f4], 0
xor eax, eax
mov dword [0x7a23f8], eax
cmp byte [0x7a23f0], 0
je 0x5d6fd8
mov eax, dword [0x7a23e0]
sub eax, 4
jb 0x5d6fc0
je 0x5d6f47
jmp 0x5d6fb9
mov eax, dword [0x7a23e4]
sub eax, 0xa
jb 0x5d6f5b
je 0x5d6f79
dec eax
sub eax, 0x50
jb 0x5d6fa7
jmp 0x5d6fb0
cmp dword [0x7a23e8], 0x3e8
jbe 0x5d6f70
mov byte [0x7a23f4], 2
jmp 0x5d6fc0
mov byte [0x7a23f4], 1
jmp 0x5d6fc0
mov eax, dword [0x7a23e8]
cmp eax, 0xa8c
jbe 0x5d6f8e
mov byte [0x7a23f4], 5
jmp 0x5d6fc0
cmp eax, 0x7d0
jbe 0x5d6f9e
mov byte [0x7a23f4], 4
jmp 0x5d6fc0
mov byte [0x7a23f4], 3
jmp 0x5d6fc0
mov byte [0x7a23f4], 5
jmp 0x5d6fc0
mov byte [0x7a23f4], 6
jmp 0x5d6fc0
mov byte [0x7a23f4], 6
movzx eax, byte [0x7a23f4]
mov byte [0x7a23f1], al
mov byte [0x7a23f3], 0
jmp 0x5d71cb
cmp byte [0x7a23f2], 0
je 0x5d71cb
mov eax, dword [0x7a23e0]
cmp eax, 0xa
ja case.0x5d6ff3.7
jmp dword [eax*4 + 0x5d6ffa]
mov byte [0x7a23f4], 7
jmp 0x5d711e
mov byte [0x7a23f4], 8
jmp 0x5d711e
mov eax, dword [0x7a23e4]
sub eax, 1
jb 0x5d704c
je 0x5d7058
jmp 0x5d7064
mov byte [0x7a23f4], 9
jmp 0x5d711e
mov byte [0x7a23f4], 0xa
jmp 0x5d711e
cmp byte [ebp - 0x9a], 1
jne 0x5d7079
mov byte [0x7a23f4], 0xa
jmp 0x5d711e
mov byte [0x7a23f4], 0xb
jmp 0x5d711e
mov eax, dword [0x7a23e4]
sub eax, 1
jb 0x5d7099
je 0x5d70b4
dec eax
je 0x5d70cf
dec eax
je 0x5d70ea
jmp 0x5d7105
cmp byte [ebp - 0x9a], 1
jne 0x5d70ab
mov byte [0x7a23f4], 0xc
jmp 0x5d711e
mov byte [0x7a23f4], 0xd
jmp 0x5d711e
cmp byte [ebp - 0x9a], 1
jne 0x5d70c6
mov byte [0x7a23f4], 0xe
jmp 0x5d711e
mov byte [0x7a23f4], 0xf
jmp 0x5d711e
cmp byte [ebp - 0x9a], 1
jne 0x5d70e1
mov byte [0x7a23f4], 0x10
jmp 0x5d711e
mov byte [0x7a23f4], 0x11
jmp 0x5d711e
cmp byte [ebp - 0x9a], 1
jne 0x5d70fc
mov byte [0x7a23f4], 0x12
jmp 0x5d711e
mov byte [0x7a23f4], 0x13
jmp 0x5d711e
mov byte [0x7a23f4], 0x15
jmp 0x5d711e
mov byte [0x7a23f4], 0x14
jmp 0x5d711e
mov byte [0x7a23f4], 0x15
mov byte [0x7a23f1], 0
movzx eax, byte [0x7a23f4]
mov byte [0x7a23f3], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x5d714b
movzx eax, word [ebp - 0xa0]
mov dword [0x7a23f8], eax
jmp 0x5d7187
mov eax, dword [0x7a23ec]
call fcn.0040a488
cmp eax, 0xe
jl 0x5d7187
mov eax, dword [0x7a23ec]
call fcn.0040a488
sub eax, 0xd
push eax
mov eax, 0x7a23ec
call fcn.0040a550
lea edx, [eax + 0x1a]
mov ebx, dword [0x79c354]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x7a23f8], eax
push 0x5d7320
push 0x5d7348
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00413980
mov ebx, eax
test ebx, ebx
je 0x5d71cb
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00414968
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x7a23f5], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x7a23f4]
mov edx, dword [edx*4 + 0x787578]
mov ecx, 0
call fcn.0040a714
mov edx, dword [ebp - 0x1dc]
mov eax, 0x7a23fc
call fcn.0040afa0
cmp byte [0x7a23f2], 0
je 0x5d72b8
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d7220
mov eax, 0x7a23fc
mov edx, 0x5d7370
call fcn.0040b0dc
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d723a
mov eax, 0x7a23fc
mov edx, 0x5d7384
call fcn.0040b0dc
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d7254
mov eax, 0x7a23fc
mov edx, 0x5d73a8
call fcn.0040b0dc
cmp byte [0x7a23f4], 0xc
jae 0x5d7277
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d7277
mov eax, 0x7a23fc
mov edx, 0x5d73c8
call fcn.0040b0dc
cmp byte [0x7a23f5], 0
je 0x5d728f
mov eax, 0x7a23fc
mov edx, 0x5d73f0
call fcn.0040b0dc
cmp dword [0x7a23ec], 0
je 0x5d72b8
push dword [0x7a23fc]
push 0x5d7408
push dword [0x7a23ec]
mov eax, 0x7a23fc
mov edx, 3
call fcn.0040b1bc
mov eax, dword [ebp - 4]
mov edx, 0x7a23e0
mov ecx, dword [0x5d680c]
call fcn.0040bb94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d72eb
lea eax, [ebp - 0x1dc]
call fcn.00409fb4
ret