Function at 0x5173ec
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x47
push 0
push 0
dec ecx
jne 0x5173f4
push ebx
push esi
mov ebx, edx
xor eax, eax
push ebp
push 0x517854
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x13c], 0x114
lea eax, [ebp - 0x13c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x51754d
mov eax, dword [ebp - 0x138]
xor edx, edx
push edx
push eax
lea eax, [ebp - 4]
call fcn.00413548
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 8]
call fcn.00413548
mov eax, dword [ebp - 0x12c]
dec eax
je 0x517460
dec eax
je 0x5174a6
jmp 0x517528
mov eax, dword [ebp - 0x134]
cmp eax, 0x5a
jb 0x51747d
lea eax, [ebp - 0xc]
mov edx, 0x517870
call fcn.00406de8
jmp 0x517528
cmp eax, 0xa
jb 0x517494
lea eax, [ebp - 0xc]
mov edx, 0x517894
call fcn.00406de8
jmp 0x517528
lea eax, [ebp - 0xc]
mov edx, 0x5178b8
call fcn.00406de8
jmp 0x517528
mov eax, dword [ebp - 0x138]
cmp eax, 3
jne 0x5174c0
lea eax, [ebp - 0xc]
mov edx, 0x5178dc
call fcn.00406de8
jmp 0x517528
cmp eax, 4
jne 0x5174d4
lea eax, [ebp - 0xc]
mov edx, 0x517908
call fcn.00406de8
jmp 0x517528
cmp eax, 5
jne 0x517516
mov eax, dword [ebp - 0x134]
cmp eax, 2
jb 0x5174f3
lea eax, [ebp - 0xc]
mov edx, 0x517934
call fcn.00406de8
jmp 0x517528
cmp eax, 1
jb 0x517507
lea eax, [ebp - 0xc]
mov edx, 0x51795c
call fcn.00406de8
jmp 0x517528
lea eax, [ebp - 0xc]
mov edx, 0x517980
call fcn.00406de8
jmp 0x517528
cmp eax, 6
jne 0x517528
lea eax, [ebp - 0xc]
mov edx, 0x5179a8
call fcn.00406de8
mov eax, dword [ebp - 0x130]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.00413548
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x128]
mov ecx, 0x80
call fcn.00406f7c
lea eax, [ebp - 0x204]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5179c8
call fcn.00407250
mov edx, dword [ebp - 0x204]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x208]
mov ecx, dword [ebp - 4]
mov edx, 0x5179e8
call fcn.00407250
mov edx, dword [ebp - 0x208]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x20c]
mov ecx, dword [ebp - 8]
mov edx, 0x517a14
call fcn.00407250
mov edx, dword [ebp - 0x20c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x210]
mov ecx, dword [ebp - 0x10]
mov edx, 0x517a40
call fcn.00407250
mov edx, dword [ebp - 0x210]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x214]
mov ecx, dword [ebp - 0x14]
mov edx, 0x517a68
call fcn.00407250
mov edx, dword [ebp - 0x214]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x517a8c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x15c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x517627
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x15c]
mov ecx, 0x10
call fcn.00406f7c
mov dword [ebp - 0x24], 0xa2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1fe]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x517655
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x1fe]
mov ecx, 0x51
call fcn.00406f7c
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x18]
mov edx, 0x517a9c
call fcn.00407250
mov edx, dword [ebp - 0x218]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x21c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x517ac8
call fcn.00407250
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x517a8c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 0x224]
call fcn.00413304
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov edx, 0x517aec
call fcn.00407250
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 1
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 0x22c]
call fcn.00413304
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x517b14
call fcn.00407250
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x517822
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5a
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov esi, eax
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.00413304
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x517b40
call fcn.00407250
mov edx, dword [ebp - 0x230]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 0x60
jne 0x517773
mov edx, 0x517b70
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x51777f
mov edx, 0x517ba0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xc
mov eax, dword [ebp - 0x28]
push eax
call sub.gdi32.dll_GetDeviceCaps
sub eax, 8
je 0x5177a0
sub eax, 8
je 0x5177af
sub eax, 8
je 0x5177be
sub eax, 8
je 0x5177cd
jmp 0x5177dc
lea eax, [ebp - 0x20]
mov edx, 0x517bd0
call fcn.00406de8
jmp 0x5177e9
lea eax, [ebp - 0x20]
mov edx, 0x517bf4
call fcn.00406de8
jmp 0x5177e9
lea eax, [ebp - 0x20]
mov edx, 0x517c28
call fcn.00406de8
jmp 0x5177e9
lea eax, [ebp - 0x20]
mov edx, 0x517c5c
call fcn.00406de8
jmp 0x5177e9
lea eax, [ebp - 0x20]
mov edx, 0x517c90
call fcn.00406de8
lea eax, [ebp - 0x238]
mov ecx, dword [ebp - 0x20]
mov edx, 0x517cac
call fcn.00407250
mov edx, dword [ebp - 0x238]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517829
mov eax, dword [ebp - 0x28]
push eax
push 0
call sub.user32.dll_ReleaseDC
ret