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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
and dword [ebp - 0x210], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], esi
test edi, edi
je 0x40e2db
cmp esi, 1
jl 0x40e2db
push 0x25
push edi
call fcn.00425dc0
pop ecx
pop ecx
test eax, eax
je 0x40e03a
push esi
call fcn.0042a45f
mov esi, eax
mov dword [ebp - 0x21c], esi
pop ecx
test esi, esi
je 0x40e03a
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00427a90
push str._TEMP_
push edi
call fcn.004110c5
add esp, 0x14
test eax, eax
je 0x40e041
lea eax, [ebp - 0x20c]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x20c], 0
je 0x40dfe2
lea eax, [ebp - 0x20c]
push str._temp
push eax
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
jne 0x40dff8
cmp byte [ebp - 0x20b], 0x3a
jne 0x40dfe2
cmp byte [ebp - 0x20a], 0x5c
jne 0x40dfe2
mov eax, dword [str.Temp]
mov dword [ebp - 0x209], eax
mov al, byte [0x44ea3c]
mov byte [ebp - 0x205], al
jmp 0x40dff8
mov eax, dword [str.C:Temp]
mov dword [ebp - 0x20c], eax
mov eax, dword [0x44ea2c]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x20c]
push eax
push str._TEMP_
push esi
push dword [ebp - 0x214]
push edi
call fcn.0040efc0
add esp, 0x14
test eax, eax
je 0x40e025
mov dword [ebp - 0x210], 1
or ebx, 0xffffffff
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40df5d
push esi
call fcn.0042a45a
pop ecx
mov eax, ebx
jmp 0x40e2de
push str._TMP_
push edi
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
je 0x40e0d9
lea eax, [ebp - 0x20c]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x20c], 0
je 0x40e0b2
lea eax, [ebp - 0x20c]
push str._temp
push eax
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
jne 0x40e0c8
cmp byte [ebp - 0x20b], 0x3a
jne 0x40e0b2
cmp byte [ebp - 0x20a], 0x5c
jne 0x40e0b2
mov eax, dword [str.Temp]
mov dword [ebp - 0x209], eax
mov al, byte [0x44ea3c]
mov byte [ebp - 0x205], al
jmp 0x40e0c8
mov eax, dword [str.C:Temp]
mov dword [ebp - 0x20c], eax
mov eax, dword [0x44ea2c]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x20c]
push eax
push str._TMP_
jmp 0x40e004
push str._USERNAME_
push edi
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
je 0x40e126
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x207
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [ebp - 0x20c], 0
je 0x40e25e
lea eax, [ebp - 0x20c]
push eax
push str._USERNAME_
jmp 0x40e004
push str._WINDIR_
push edi
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
je 0x40e167
push 0x207
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x20c], 0
je 0x40e25e
lea eax, [ebp - 0x20c]
push eax
push str._WINDIR_
jmp 0x40e004
push str._SYSTEMROOT_
push edi
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
je 0x40e270
push 0x207
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [ebp - 0x20c], 0
je 0x40e25e
lea esi, [ebp - 0x20c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40e1a4
sub esi, ecx
cmp esi, 7
jl 0x40e1cf
lea eax, [ebp + esi - 0x213]
push str._system
push eax
call fcn.0042d363
pop ecx
pop ecx
test eax, eax
jne 0x40e1cf
add esi, 0xfffffff9
jmp 0x40e233
cmp esi, 8
jl 0x40e1f1
lea eax, [ebp + esi - 0x214]
push str._system_
push eax
call fcn.0042d363
pop ecx
pop ecx
test eax, eax
jne 0x40e1f1
add esi, 0xfffffff8
jmp 0x40e233
cmp esi, 9
jl 0x40e213
lea eax, [ebp + esi - 0x215]
push str._system32
push eax
call fcn.0042d363
pop ecx
pop ecx
test eax, eax
jne 0x40e213
add esi, 0xfffffff7
jmp 0x40e233
cmp esi, 0xa
jl 0x40e247
lea eax, [ebp + esi - 0x216]
push str._system32
push eax
call fcn.0042d363
pop ecx
pop ecx
test eax, eax
jne 0x40e247
add esi, 0xfffffff6
cmp esi, 0x208
jae 0x40e2ed
mov byte [ebp + esi - 0x20c], 0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
push str._SYSTEMROOT_
jmp 0x40e004
xor ecx, ecx
inc ecx
mov dword [ebp - 0x210], ecx
mov ebx, ecx
mov eax, ecx
jmp 0x40e02b
push str._SYSTEMDRIVE_
push edi
call fcn.004110c5
pop ecx
pop ecx
test eax, eax
je 0x40e2cd
push 0x207
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [ebp - 0x20c], 0
je 0x40e2bd
cmp byte [ebp - 0x20b], 0x3a
jne 0x40e2bd
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x20a], 0
push eax
push str._SYSTEMDRIVE_
jmp 0x40e004
xor eax, eax
inc eax
mov dword [ebp - 0x210], eax
mov ebx, eax
jmp 0x40e02b
xor eax, eax
inc eax
mov dword [ebp - 0x210], eax
jmp 0x40e02b
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
call fcn.0042396c
int3