Function at 0x44a340
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
mov dword [esp + 0xc], 0
je 0x44a740
mov esi, dword [ebp + 0xc]
cmp esi, 1
jl 0x44a740
push 0x25
push ebx
call fcn.004590c0
add esp, 8
test eax, eax
je 0x44a735
push esi
call fcn.00459619
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x44a735
jmp 0x44a3a0
xor eax, eax
push str._TEMP_
mov ecx, 0x82
lea edi, [esp + 0x1c]
push ebx
rep stosd dword es:[edi], eax
call fcn.0044db90
add esp, 8
test eax, eax
je 0x44a476
lea eax, [esp + 0x18]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov al, byte [esp + 0x18]
test al, al
jne 0x44a403
mov edx, dword [0x47c7f8]
mov ecx, dword [str.C:Temp]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x18]
push edx
push str._TEMP_
mov dword [esp + 0x20], ecx
push eax
jmp 0x44a5ba
lea eax, [esp + 0x18]
push str._temp
push eax
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x44a462
cmp byte [esp + 0x19], 0x3a
jne 0x44a44f
cmp byte [esp + 0x1a], 0x5c
jne 0x44a44f
mov dl, byte [0x47c7e8]
mov ecx, dword [str.Temp]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1f], dl
lea edx, [esp + 0x18]
push edx
push str._TEMP_
mov dword [esp + 0x23], ecx
push eax
jmp 0x44a5ba
mov eax, dword [str.C:Temp]
mov ecx, dword [0x47c7f8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push str._TEMP_
push eax
jmp 0x44a5ba
push str._TMP_
push ebx
call fcn.0044db90
add esp, 8
test eax, eax
je 0x44a53b
lea ecx, [esp + 0x18]
push ecx
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov al, byte [esp + 0x18]
test al, al
jne 0x44a4cb
mov eax, dword [0x47c7f8]
mov edx, dword [str.C:Temp]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push str._TMP_
mov dword [esp + 0x20], edx
push ecx
jmp 0x44a5ba
lea ecx, [esp + 0x18]
push str._temp
push ecx
call fcn.0044db90
add esp, 8
test eax, eax
jne 0x44a52a
cmp byte [esp + 0x19], 0x3a
jne 0x44a516
cmp byte [esp + 0x1a], 0x5c
jne 0x44a516
mov al, byte [0x47c7e8]
mov edx, dword [str.Temp]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1f], al
lea eax, [esp + 0x18]
push eax
push str._TMP_
mov dword [esp + 0x23], edx
push ecx
jmp 0x44a5ba
mov ecx, dword [str.C:Temp]
mov edx, dword [0x47c7f8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push str._TMP_
push ecx
jmp 0x44a5ba
push str._USERNAME_
push ebx
call fcn.0044db90
add esp, 8
test eax, eax
je 0x44a57d
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x207
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov al, byte [esp + 0x18]
test al, al
je 0x44a720
lea ecx, [esp + 0x18]
push ecx
push str._USERNAME_
jmp 0x44a5b5
push str._WINDIR_
push ebx
call fcn.0044db90
add esp, 8
test eax, eax
je 0x44a5ec
push 0x207
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 0x18]
test al, al
je 0x44a720
lea ecx, [esp + 0x18]
push ecx
push str._WINDIR_
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.0044a1f0
add esp, 0x14
test eax, eax
je 0x44a3a0
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x10], 0xffffffff
call fcn.0045932f
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._SYSTEMROOT_
push ebx
call fcn.0044db90
add esp, 8
test eax, eax
je 0x44a6d6
push 0x207
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x18]
test al, al
je 0x44a720
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a625
sub eax, edx
mov esi, eax
cmp esi, 7
jl 0x44a64f
lea edi, [esp + esi + 0x11]
push str._system
push edi
call fcn.0045ba9a
add esp, 8
test eax, eax
jne 0x44a64f
mov byte [edi], al
jmp 0x44a6aa
cmp esi, 8
jl 0x44a66e
lea edi, [esp + esi + 0x10]
push str._system_
push edi
call fcn.0045ba9a
add esp, 8
test eax, eax
jne 0x44a66e
mov byte [edi], al
jmp 0x44a6aa
cmp esi, 9
jl 0x44a68d
lea edi, [esp + esi + 0xf]
push str._system32
push edi
call fcn.0045ba9a
add esp, 8
test eax, eax
jne 0x44a68d
mov byte [edi], al
jmp 0x44a6aa
cmp esi, 0xa
jl 0x44a6aa
lea esi, [esp + esi + 0xe]
push str._system32
push esi
call fcn.0045ba9a
add esp, 8
test eax, eax
jne 0x44a6aa
mov byte [esi], al
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push str._SYSTEMROOT_
push edx
push eax
push ebx
call fcn.0044a1f0
add esp, 0x14
test eax, eax
jne 0x44a5cc
mov esi, dword [ebp + 0xc]
jmp 0x44a3a0
push str._SYSTEMDRIVE_
push ebx
call fcn.0044db90
add esp, 8
test eax, eax
je 0x44a728
push 0x207
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x18]
test al, al
je 0x44a720
cmp byte [esp + 0x19], 0x3a
jne 0x44a720
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push str._SYSTEMDRIVE_
mov byte [esp + 0x22], 0
push eax
jmp 0x44a5ba
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045932f
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret