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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0x80
push eax
lea eax, [ebp - 0x104]
mov ebx, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4039f4
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4039e4
push esi
push edi
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0x80
push eax
lea eax, [ebp - 0x204]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x403a8b
lea ecx, [ebx - 2]
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403a20
mov eax, dword [0x5c31c8]
lea edx, [ebp - 0x204]
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x5c31cc]
mov dword [ecx + 4], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403a43
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403a53
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403a70
mov eax, dword [0x5c31d0]
mov dword [ecx], eax
mov eax, dword [0x5c31d4]
mov dword [ecx + 4], eax
mov ecx, 0x11c
lea eax, [ebp - 0x320]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x403a96
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x31c]
cmp eax, 0xa
jne 0x403b15
cmp dword [ebp - 0x318], 0
jne case.default.0x403b2d
cmp byte [ebp - 0x206], 1
mov edx, str.Windows_10
mov eax, str.Windows_Server_Technical_Preview
cmovne edx, eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403ae6
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403af6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x403b2d
cmp eax, 6
jne 0x403c54
mov eax, dword [ebp - 0x318]
cmp eax, 3
ja case.default.0x403b2d
jmp dword [eax*4 + 0x403e50]
cmp byte [ebp - 0x206], 1
mov edx, str.Windows_8.1
mov eax, str.Windows_Server_2012_R2
cmovne edx, eax
mov esi, edx
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403b50
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403b60
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x403b2d
cmp byte [ebp - 0x206], 1
mov edx, str.Windows_8
mov eax, str.Windows_Server_2012
cmovne edx, eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403b95
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403ba5
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x403b2d
cmp byte [ebp - 0x206], 1
mov edx, str.Windows_7
mov eax, str.Windows_Server_2008_R2
cmovne edx, eax
mov esi, edx
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403be0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403bf0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x403b2d
cmp byte [ebp - 0x206], 1
mov edx, str.Windows_Vista
mov eax, str.Windows_Server_2008
cmovne edx, eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403c25
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403c35
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x403b2d
cmp eax, 5
jne case.default.0x403b2d
mov eax, dword [ebp - 0x318]
sub eax, 0
je 0x403d01
sub eax, 1
je 0x403cbf
sub eax, 1
jne case.default.0x403b2d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov edx, str.Windows_Server_2003
mov ecx, str.Windows_Server_2003_R2
cmovne edx, ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403c93
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403ca3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x403b2d
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403cc2
mov eax, dword [str.Windows_XP]
mov dword [ecx], eax
mov eax, dword [0x5c339c]
mov dword [ecx + 4], eax
mov eax, dword [0x5c33a0]
mov dword [ecx + 8], eax
mov eax, dword [0x5c33a4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x5c33a8]
mov dword [ecx + 0x10], eax
mov ax, word [0x5c33ac]
mov word [ecx + 0x14], ax
jmp case.default.0x403b2d
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403d04
mov ecx, 6
mov esi, str.Windows_2000
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d23
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x403dc3
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
mov edx, str.__64_bit
mov ecx, str.__32_bit
cmove edx, ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403d54
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403d64
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x21
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x403daa
lea edi, [ebx - 2]
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403d90
mov ecx, 9
mov esi, str._Tablet_PC_Edition
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebx - 2]
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x403db0
mov eax, dword [0x5c3528]
mov dword [edi], eax
cmp word [0x5ed358], 0
je 0x403e1e
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403dd0
mov eax, dword [0x5c341c]
mov edx, 0x5ed358
mov dword [ecx], eax
mov esi, edx
mov ax, word [0x5c3420]
mov word [ecx + 4], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403df4
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403e04
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, 0xfffffffe
pop esi
mov ax, word [ebx + 2]
lea ebx, [ebx + 2]
test ax, ax
jne 0x403e23
mov eax, dword [0x5c3424]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
xor ecx, ebp
mov ax, word [0x5c3428]
mov word [ebx + 4], ax
pop ebx
call fcn.0054e183
mov esp, ebp
pop ebp
ret