Function at 0x445e94
Capabilities:
Get common file path
Get hostname
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x48a220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x224]
push ebx
mov ebx, dword [ebp + 8]
push eax
mov dword [ebp - 0x240], ebx
call fcn.00405bd0
mov ecx, dword [ebp - 0x214]
test ecx, ecx
jne 0x445eec
lea eax, [ebp - 0x224]
mov ecx, ebx
push eax
call fcn.00405c60
push 0
push 1
lea ecx, [ebp - 0x224]
call fcn.00406920
jmp 0x446357
push esi
push edi
xor edi, edi
cmp ecx, 1
jbe 0x445fb3
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x224]
mov esi, dword [ebp - 0x224]
cmp edx, 8
push 0x22
cmovae eax, esi
pop edi
push 0
cmp word [eax], di
pop edi
jne 0x445f35
cmp edx, 8
lea eax, [ebp - 0x224]
push 0x22
cmovae eax, esi
pop edi
push 0
cmp word [eax + ecx*2 - 2], di
pop edi
je 0x445f62
cmp edx, 8
lea eax, [ebp - 0x224]
push 0x27
cmovae eax, esi
pop edi
push 0
cmp word [eax], di
pop edi
jne 0x445fb3
cmp edx, 8
lea eax, [ebp - 0x224]
push 0x27
cmovae eax, esi
pop edx
cmp word [eax + ecx*2 - 2], dx
jne 0x445fb3
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], edi
push eax
lea ecx, [ebp - 0x23c]
call fcn.00406670
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00405cd0
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
xor ebx, ebx
mov esi, dword [edi + 0x48a030]
push esi
call fcn.004038d0
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x224]
call fcn.00406790
mov esi, eax
cmp esi, 0xffffffff
je 0x44603b
push ebx
push dword [edi + 0x48a034]
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00405c00
mov ecx, dword [edi + 0x48a030]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x446007
push 0xffffffffffffffff
push ebx
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push eax
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.004088e0
push ebx
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
add edi, 8
cmp edi, 0x38
jb 0x445fb5
mov esi, dword [str._user_name]
push esi
call fcn.004038d0
pop ecx
push eax
xor edi, edi
lea ecx, [ebp - 0x224]
push edi
push esi
call fcn.00406790
mov ebx, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x446119
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], edi
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call edi
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x446117
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004486a9
mov esi, eax
lea eax, [ebp - 0x240]
pop ecx
push eax
push esi
call edi
push esi
lea ecx, [ebp - 0x23c]
call fcn.00405c00
mov ecx, dword [str._user_name]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4460d1
push 0xffffffffffffffff
push edi
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push eax
push ecx
push dword [ebp - 0x244]
lea ecx, [ebp - 0x224]
call fcn.004088e0
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
test esi, esi
je 0x446119
push esi
call fcn.0044bdac
pop ecx
jmp 0x446119
xor edi, edi
mov esi, dword [str._machine_name]
push esi
call fcn.004038d0
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x224]
call fcn.00406790
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x4461eb
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], edi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push 5
call edi
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4461e9
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004486a9
pop ecx
mov esi, eax
lea eax, [ebp - 0x240]
push eax
push esi
push 5
call edi
push esi
lea ecx, [ebp - 0x23c]
call fcn.00405c00
mov ecx, dword [str._machine_name]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4461a3
push 0xffffffffffffffff
push edi
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push eax
push ecx
push dword [ebp - 0x244]
lea ecx, [ebp - 0x224]
call fcn.004088e0
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
test esi, esi
je 0x4461eb
push esi
call fcn.0044bdac
pop ecx
jmp 0x4461eb
xor edi, edi
mov esi, dword [str._client_name]
push esi
call fcn.004038d0
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x224]
call fcn.00406790
mov esi, eax
cmp esi, 0xffffffff
je 0x446292
lea eax, [ebp - 0x244]
mov dword [ebp - 0x240], edi
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], edi
push eax
push 0xa
push 0xffffffffffffffff
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x446292
push dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
call fcn.00405c00
mov ecx, dword [str._client_name]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x446253
push 0xffffffffffffffff
push edi
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push eax
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.004088e0
push dword [ebp - 0x240]
call sub.WTSAPI32.dll_WTSFreeMemory
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
mov esi, dword [str._session_name]
push esi
call fcn.004038d0
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x224]
call fcn.00406790
mov esi, eax
cmp esi, 0xffffffff
je 0x446339
lea eax, [ebp - 0x244]
mov dword [ebp - 0x240], edi
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], edi
push eax
push 6
push 0xffffffffffffffff
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x446339
push dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
call fcn.00405c00
mov ecx, dword [str._session_name]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4462fa
push 0xffffffffffffffff
push edi
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push eax
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.004088e0
push dword [ebp - 0x240]
call sub.WTSAPI32.dll_WTSFreeMemory
push edi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00406920
lea eax, [ebp - 0x224]
mov ecx, ebx
push eax
call fcn.00405c60
push edi
push 1
lea ecx, [ebp - 0x224]
call fcn.00406920
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00449e44
mov esp, ebp
pop ebp
ret