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

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
mov byte [edi], 0
lea ecx, [edi + eax]
mov al, byte [esi]
mov dword [esp + 0x10], ecx
test al, al
je 0x4146a8
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsnbicmp]
mov al, byte [esi]
cmp al, 0xd
je 0x4146a8
cmp al, 0xa
je 0x4146a8
cmp al, 0x25
jne 0x414689
push 9
push esi
push str._windows_
call ebp
add esp, 0xc
test eax, eax
jne 0x41433f
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4145f6
push 0xa
push esi
push str._system32_
call ebp
add esp, 0xc
test eax, eax
jne 0x414365
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4145f6
push 9
push esi
push str._sysdisk_
call ebp
add esp, 0xc
test eax, eax
jne 0x414390
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [esp + 0x1a], 0
jmp 0x4145f6
push 6
push esi
push str._temp_
call ebp
add esp, 0xc
test eax, eax
jne 0x4143b6
lea edx, [esp + 0x18]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4145f6
push 6
push esi
push str._user_
call ebp
add esp, 0xc
test eax, eax
jne 0x4143e4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x4145f6
push 9
push esi
push str._APPDATA_
call ebp
add esp, 0xc
test eax, eax
jne 0x4143fd
push eax
push 0x1a
jmp 0x4145ed
push 0x10
push esi
push str._COMMON_APPDATA_
call ebp
add esp, 0xc
test eax, eax
jne 0x41441b
push eax
lea eax, [esp + 0x1c]
push 0x23
push eax
jmp 0x4145f2
push 0x12
push esi
push str._COMMON_DOCUMENTS_
call ebp
add esp, 0xc
test eax, eax
jne 0x414439
push eax
lea ecx, [esp + 0x1c]
push 0x2e
push ecx
jmp 0x4145f2
push 0x12
push esi
push str._COMMON_FAVORITES_
call ebp
add esp, 0xc
test eax, eax
jne 0x414452
push eax
push 0x1f
jmp 0x4145ed
push 0x11
push esi
push str._COMMON_PROGRAMS_
call ebp
add esp, 0xc
test eax, eax
jne 0x414470
push eax
lea eax, [esp + 0x1c]
push 0x17
push eax
jmp 0x4145f2
push 0x12
push esi
push str._COMMON_STARTMENU_
call ebp
add esp, 0xc
test eax, eax
jne 0x41448e
push eax
lea ecx, [esp + 0x1c]
push 0x16
push ecx
jmp 0x4145f2
push 0x10
push esi
push str._COMMON_STARTUP_
call ebp
add esp, 0xc
test eax, eax
jne 0x4144a7
push eax
push 0x18
jmp 0x4145ed
push 0xa
push esi
push str._CONTROLS_
call ebp
add esp, 0xc
test eax, eax
jne 0x4144c5
push eax
lea eax, [esp + 0x1c]
push 3
push eax
jmp 0x4145f2
push 9
push esi
push str._DESKTOP_
call ebp
add esp, 0xc
test eax, eax
jne 0x4144e2
push eax
lea ecx, [esp + 0x1c]
push eax
push ecx
jmp 0x4145f2
push 0x12
push esi
push str._DESKTOPDIRECTORY_
call ebp
add esp, 0xc
test eax, eax
jne 0x4144fb
push eax
push 0x10
jmp 0x4145ed
push 0x11
push esi
push str._COMMON_PROGRAMS_
call ebp
add esp, 0xc
test eax, eax
jne 0x414519
push eax
lea eax, [esp + 0x1c]
push 0x17
push eax
jmp 0x4145f2
push 0xb
push esi
push str._FAVORITES_
call ebp
add esp, 0xc
test eax, eax
jne 0x414537
push eax
lea ecx, [esp + 0x1c]
push 6
push ecx
jmp 0x4145f2
push 0xf
push esi
push str._LOCAL_APPDATA_
call ebp
add esp, 0xc
test eax, eax
jne 0x414550
push eax
push 0x1c
jmp 0x4145ed
push 0xa
push esi
push str._PERSONAL_
call ebp
add esp, 0xc
test eax, eax
jne 0x41456e
push eax
lea eax, [esp + 0x1c]
push 5
push eax
jmp 0x4145f2
push 0x16
push esi
push str._PROGRAM_FILES_COMMON_
call ebp
add esp, 0xc
test eax, eax
jne 0x414589
push eax
lea ecx, [esp + 0x1c]
push 0x2b
push ecx
jmp 0x4145f2
push 0xf
push esi
push str._PROGRAM_FILES_
call ebp
add esp, 0xc
test eax, eax
jne 0x41459f
push eax
push 0x26
jmp 0x4145ed
push 0xa
push esi
push str._PROGRAMS_
call ebp
add esp, 0xc
test eax, eax
jne 0x4145ba
push eax
lea eax, [esp + 0x1c]
push 2
push eax
jmp 0x4145f2
push 8
push esi
push str._SYSTEM_
call ebp
add esp, 0xc
test eax, eax
jne 0x4145d5
push eax
lea ecx, [esp + 0x1c]
push 0x25
push ecx
jmp 0x4145f2
push 9
push esi
push str._WINDOWS_
call ebp
add esp, 0xc
test eax, eax
jne 0x414689
push eax
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
call ebx
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x17]
lea ecx, [esp + ecx + 0x18]
cmp al, 0x5c
je 0x414614
cmp al, 0x2f
jne 0x414618
mov byte [ecx - 1], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x124]
sub ecx, edx
cmp ecx, 0x7fffffff
ja 0x41465b
test ecx, ecx
mov edi, ecx
mov eax, edx
je 0x41465b
lea edx, [esp + 0x18]
mov ecx, eax
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41464c
mov byte [eax], cl
inc eax
dec edi
jne 0x41463d
jmp 0x414650
test edi, edi
jne 0x414651
dec eax
mov edx, dword [esp + 0x124]
mov byte [eax], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0x25
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
inc esi
push esi
mov dword [esp + 0x12c], edx
call dword [sym.imp.ntdll.dll_strchr]
mov edi, dword [esp + 0x12c]
add esp, 8
inc eax
mov esi, eax
jmp 0x41469f
cmp edi, dword [esp + 0x10]
jae 0x4146b8
mov al, byte [esi]
mov byte [edi], al
inc edi
mov dword [esp + 0x124], edi
inc esi
mov byte [edi], 0
cmp byte [esi], 0
jne 0x4142ff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret