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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push ebx
push esi
push edi
lea edi, [ebp - 0x38c]
mov ecx, 0xe3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0x100
push 0x100
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040b300
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp esi, esp
call fcn.0040b060
test eax, eax
jne 0x40a630
xor al, al
jmp 0x40a83a
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x108], 0
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040abd0
add esp, 8
mov dword [ebp - 0x228], 0x100
push 0x100
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b300
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp esi, esp
call fcn.0040b060
test eax, eax
jne 0x40a69f
xor al, al
jmp 0x40a83a
mov eax, dword [ebp - 0x228]
mov byte [ebp + eax - 0x21c], 0
push 0x463e44
mov eax, dword [ebp + 8]
push eax
call fcn.0040abd0
add esp, 8
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040abd0
add esp, 8
mov eax, dword [ebp + 8]
mov byte [eax + 0x40], 0
push 0x94
push 0
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040b300
add esp, 0xc
mov dword [ebp - 0x2c4], 0x94
mov esi, esp
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.0040b060
test eax, eax
jne 0x40a719
xor al, al
jmp 0x40a83a
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 1
je 0x40a7d1
cmp dword [ebp - 0x38c], 2
je 0x40a740
jmp 0x40a81d
cmp dword [ebp - 0x2c0], 5
jne 0x40a766
cmp dword [ebp - 0x2bc], 2
jne 0x40a766
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0040abd0
add esp, 8
cmp dword [ebp - 0x2c0], 5
jne 0x40a78c
cmp dword [ebp - 0x2bc], 1
jne 0x40a78c
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0040abd0
add esp, 8
cmp dword [ebp - 0x2c0], 5
jne 0x40a7b2
cmp dword [ebp - 0x2bc], 0
jne 0x40a7b2
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0040abd0
add esp, 8
cmp dword [ebp - 0x2c0], 4
ja 0x40a7cf
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0040abd0
add esp, 8
jmp 0x40a81d
cmp dword [ebp - 0x2c0], 4
jne 0x40a7f7
cmp dword [ebp - 0x2bc], 0
jne 0x40a7f7
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0040abd0
add esp, 8
cmp dword [ebp - 0x2c0], 4
jne 0x40a81d
cmp dword [ebp - 0x2bc], 0xa
jne 0x40a81d
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0040abd0
add esp, 8
mov eax, dword [ebp + 8]
mov byte [eax + 0x4c], 0
push 0x463c76
mov eax, dword [ebp + 8]
add eax, 0x4c
push eax
call fcn.0040abc0
add esp, 8
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x40a86c]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x38c
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret