Function at 0x411130
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 0x411518
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsnbicmp]
mov al, byte [esi]
cmp al, 0xd
je 0x411518
cmp al, 0xa
je 0x411518
cmp al, 0x25
jne 0x4114f9
push 9
push esi
push str._windows_
call ebp
add esp, 0xc
test eax, eax
jne 0x4111af
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x411466
push 0xa
push esi
push 0x44a16c
call ebp
add esp, 0xc
test eax, eax
jne 0x4111d5
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
jmp 0x411466
push 9
push esi
push str._sysdisk_
call ebp
add esp, 0xc
test eax, eax
jne 0x411200
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov byte [esp + 0x1a], 0
jmp 0x411466
push 6
push esi
push 0x44a158
call ebp
add esp, 0xc
test eax, eax
jne 0x411226
lea edx, [esp + 0x18]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
jmp 0x411466
push 6
push esi
push str._user_
call ebp
add esp, 0xc
test eax, eax
jne 0x411254
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 0x411466
push 9
push esi
push str._APPDATA_
call ebp
add esp, 0xc
test eax, eax
jne 0x41126d
push eax
push 0x1a
jmp 0x41145d
push 0x10
push esi
push str._COMMON_APPDATA_
call ebp
add esp, 0xc
test eax, eax
jne 0x41128b
push eax
lea eax, [esp + 0x1c]
push 0x23
push eax
jmp 0x411462
push 0x12
push esi
push str._COMMON_DOCUMENTS_
call ebp
add esp, 0xc
test eax, eax
jne 0x4112a9
push eax
lea ecx, [esp + 0x1c]
push 0x2e
push ecx
jmp 0x411462
push 0x12
push esi
push str._COMMON_FAVORITES_
call ebp
add esp, 0xc
test eax, eax
jne 0x4112c2
push eax
push 0x1f
jmp 0x41145d
push 0x11
push esi
push str._COMMON_PROGRAMS_
call ebp
add esp, 0xc
test eax, eax
jne 0x4112e0
push eax
lea eax, [esp + 0x1c]
push 0x17
push eax
jmp 0x411462
push 0x12
push esi
push str._COMMON_STARTMENU_
call ebp
add esp, 0xc
test eax, eax
jne 0x4112fe
push eax
lea ecx, [esp + 0x1c]
push 0x16
push ecx
jmp 0x411462
push 0x10
push esi
push str._COMMON_STARTUP_
call ebp
add esp, 0xc
test eax, eax
jne 0x411317
push eax
push 0x18
jmp 0x41145d
push 0xa
push esi
push str._CONTROLS_
call ebp
add esp, 0xc
test eax, eax
jne 0x411335
push eax
lea eax, [esp + 0x1c]
push 3
push eax
jmp 0x411462
push 9
push esi
push str._DESKTOP_
call ebp
add esp, 0xc
test eax, eax
jne 0x411352
push eax
lea ecx, [esp + 0x1c]
push eax
push ecx
jmp 0x411462
push 0x12
push esi
push str._DESKTOPDIRECTORY_
call ebp
add esp, 0xc
test eax, eax
jne 0x41136b
push eax
push 0x10
jmp 0x41145d
push 0x11
push esi
push str._COMMON_PROGRAMS_
call ebp
add esp, 0xc
test eax, eax
jne 0x411389
push eax
lea eax, [esp + 0x1c]
push 0x17
push eax
jmp 0x411462
push 0xb
push esi
push str._FAVORITES_
call ebp
add esp, 0xc
test eax, eax
jne 0x4113a7
push eax
lea ecx, [esp + 0x1c]
push 6
push ecx
jmp 0x411462
push 0xf
push esi
push str._LOCAL_APPDATA_
call ebp
add esp, 0xc
test eax, eax
jne 0x4113c0
push eax
push 0x1c
jmp 0x41145d
push 0xa
push esi
push str._PERSONAL_
call ebp
add esp, 0xc
test eax, eax
jne 0x4113de
push eax
lea eax, [esp + 0x1c]
push 5
push eax
jmp 0x411462
push 0x16
push esi
push str._PROGRAM_FILES_COMMON_
call ebp
add esp, 0xc
test eax, eax
jne 0x4113f9
push eax
lea ecx, [esp + 0x1c]
push 0x2b
push ecx
jmp 0x411462
push 0xf
push esi
push str._PROGRAM_FILES_
call ebp
add esp, 0xc
test eax, eax
jne 0x41140f
push eax
push 0x26
jmp 0x41145d
push 0xa
push esi
push str._PROGRAMS_
call ebp
add esp, 0xc
test eax, eax
jne 0x41142a
push eax
lea eax, [esp + 0x1c]
push 2
push eax
jmp 0x411462
push 8
push esi
push str._SYSTEM_
call ebp
add esp, 0xc
test eax, eax
jne 0x411445
push eax
lea ecx, [esp + 0x1c]
push 0x25
push ecx
jmp 0x411462
push 9
push esi
push str._WINDOWS_
call ebp
add esp, 0xc
test eax, eax
jne 0x4114f9
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 0x411484
cmp al, 0x2f
jne 0x411488
mov byte [ecx - 1], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x124]
sub ecx, edx
cmp ecx, 0x7fffffff
ja 0x4114cb
test ecx, ecx
mov edi, ecx
mov eax, edx
je 0x4114cb
lea edx, [esp + 0x18]
mov ecx, eax
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x4114bc
mov byte [eax], cl
inc eax
dec edi
jne 0x4114ad
jmp 0x4114c0
test edi, edi
jne 0x4114c1
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 0x41150f
cmp edi, dword [esp + 0x10]
jae 0x411528
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 0x41116f
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