Function at 0x40a480
Capabilities:
Get common file path
Get hostname
Get session user name
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f30
mov eax, dword fs:[0]
push eax
mov eax, 0x121c
call fcn.0041a650
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1228], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, section..data
mov dword [ebp - 0x1224], esi
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x121c]
mov dword [ebp - 4], edi
mov ebx, 1
push eax
mov dword [ebp - 0x1228], ebx
call fcn.00409fb0
add esp, 4
mov edi, eax
push 4
mov dword [ebp - 4], ebx
push 0x42b7d4
mov ebx, esi
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x121c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x121c]
push ecx
call fcn.0040a090
add esp, 4
mov edi, eax
push 2
push 0x42b7e0
mov ebx, esi
mov dword [ebp - 4], 2
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x121c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a5c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x1216]
push edx
mov word [ebp - 0x1218], cx
call fcn.0040daf0
add esp, 0xc
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0x1218]
push ecx
mov dword [ebp - 0x1220], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x121c], edi
lea ecx, [ebp - 0x1218]
mov dword [ebp - 4], 3
test ecx, 0xffff0000
jne 0x40a64f
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.00407e50
add esp, 4
test eax, eax
je 0x40a68a
push eax
mov eax, ebx
lea edi, [ebp - 0x121c]
call fcn.00408050
jmp 0x40a684
lea eax, [ebp - 0x1218]
lea edx, [eax + 2]
jmp 0x40a660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a660
sub eax, edx
lea ecx, [ebp - 0x1218]
sar eax, 1
push ecx
lea edx, [ebp - 0x121c]
push edx
mov ebx, eax
call fcn.00408270
mov edi, dword [ebp - 0x121c]
push 7
push str.PC_NAME
mov ebx, esi
mov dword [ebp - 4], 4
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [edi - 0xc]
push eax
push edi
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xa16]
push edx
mov word [ebp - 0xa18], cx
call fcn.0040daf0
add esp, 0xc
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0xa18]
push ecx
mov dword [ebp - 0x1220], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x121c], edi
lea ecx, [ebp - 0xa18]
mov dword [ebp - 4], 5
test ecx, 0xffff0000
jne 0x40a76d
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.00407e50
add esp, 4
test eax, eax
je 0x40a7a0
push eax
mov eax, ebx
lea edi, [ebp - 0x121c]
call fcn.00408050
jmp 0x40a79a
lea eax, [ebp - 0xa18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a776
sub eax, edx
lea ecx, [ebp - 0xa18]
sar eax, 1
push ecx
lea edx, [ebp - 0x121c]
push edx
mov ebx, eax
call fcn.00408270
mov edi, dword [ebp - 0x121c]
push 4
push str.USER
mov ebx, esi
mov dword [ebp - 4], 6
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [edi - 0xc]
push eax
push edi
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a7f7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x121c], edi
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 7
test ecx, 0xffff0000
jne 0x40a85c
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.00407e50
add esp, 4
test eax, eax
je 0x40a88f
push eax
mov eax, ebx
lea edi, [ebp - 0x121c]
call fcn.00408050
jmp 0x40a889
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a865
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x121c]
push edx
mov ebx, eax
call fcn.00408270
mov edi, dword [ebp - 0x121c]
push 7
push str.APPPATH
mov ebx, esi
mov dword [ebp - 4], 8
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [edi - 0xc]
push eax
push edi
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a8e6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebp - 0x121c]
call fcn.0040a210
mov esi, eax
push 9
mov dword [ebp - 4], 9
mov ebx, dword [ebp - 0x1224]
push str.DISKSPACE
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x121c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x121c]
call fcn.0040a330
mov esi, eax
push 6
push str.MEMORY
mov dword [ebp - 4], 0xa
call fcn.00403e30
push 1
push 0x42b7d0
call fcn.00403e30
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00403e30
push 2
push 0x42b164
call fcn.00403e30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x121c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret