Function at 0x10004c60
Capabilities:
Get common file path
Get startup folder
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db741
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
push str.LOCAL_APPDATA_LOW
lea ecx, [ebp - 0x9f4]
call fcn.10003810
mov byte [ebp - 4], 1
push 0x28
lea eax, [ebp - 0xa0c]
push eax
mov ecx, edi
call fcn.10004af0
mov byte [ebp - 4], 2
push str.AppDataLocalLow
push eax
lea eax, [ebp - 0x9dc]
push eax
call fcn.10003180
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0c]
call fcn.10003a70
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.APPLICATION_DATA
lea ecx, [ebp - 0x9f4]
call fcn.10003d10
push 0x1c
lea eax, [ebp - 0xa0c]
push eax
mov ecx, edi
call fcn.10004af0
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003ca0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0c]
call fcn.10003a70
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.LocalLowAppData
lea ecx, [ebp - 0x9f4]
call fcn.10003d10
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.101a08b0
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str...LocalLow
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003d10
cmp dword [ebp - 0x9cc], 0
je 0x10004e3c
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.Windows
lea ecx, [ebp - 0x9f4]
call fcn.10003d10
push 0x104
lea eax, [ebp - 0x814]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call ebx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003d10
cmp dword [ebp - 0x9cc], 0
je 0x10004eb6
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.System
lea ecx, [ebp - 0x9f4]
call fcn.10003d10
push 0x104
lea eax, [ebp - 0x814]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call esi
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003d10
cmp dword [ebp - 0x9cc], 0
je 0x10004f30
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.SystemRoot
lea ecx, [ebp - 0x9f4]
call fcn.10003d10
push 0x104
lea eax, [ebp - 0x814]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003d10
cmp dword [ebp - 0x9cc], 0
je 0x10004fa4
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.SystemDrive
lea ecx, [ebp - 0x9f4]
call fcn.10003d10
push 0x104
lea eax, [ebp - 0x814]
push eax
call ebx
test eax, eax
je 0x10005029
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003d10
cmp dword [ebp - 0x9cc], 0
je 0x10005029
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0xa24]
call fcn.10003090
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa24]
call fcn.10003b80
push str.ALLUSERSPROFILE
lea ecx, [ebp - 0x9c4]
call fcn.10003810
mov byte [ebp - 4], 0xd
push str.COMMONPROGRAMFILES_x86_
lea ecx, [ebp - 0x9ac]
call fcn.10003810
mov byte [ebp - 4], 0xe
push str.COMMONPROGRAMFILES
lea ecx, [ebp - 0x994]
call fcn.10003810
mov byte [ebp - 4], 0xf
push str.HOMEDRIVE
lea ecx, [ebp - 0x97c]
call fcn.10003810
mov byte [ebp - 4], 0x10
push str.HOMEPATH
lea ecx, [ebp - 0x964]
call fcn.10003810
mov byte [ebp - 4], 0x11
push str.LOCALAPPDATA
lea ecx, [ebp - 0x94c]
call fcn.10003810
mov byte [ebp - 4], 0x12
push str.PROGRAMDATA
lea ecx, [ebp - 0x934]
call fcn.10003810
mov byte [ebp - 4], 0x13
push str.PROGRAMFILES
lea ecx, [ebp - 0x91c]
call fcn.10003810
mov byte [ebp - 4], 0x14
push str.PUBLIC
lea ecx, [ebp - 0x904]
call fcn.10003810
mov byte [ebp - 4], 0x15
push str.SYSTEMDRIVE
lea ecx, [ebp - 0x8ec]
call fcn.10003810
mov byte [ebp - 4], 0x16
push str.SYSTEMROOT
lea ecx, [ebp - 0x8d4]
call fcn.10003810
mov byte [ebp - 4], 0x17
push str.TEMP
lea ecx, [ebp - 0x8bc]
call fcn.10003810
mov byte [ebp - 4], 0x18
push 0x10200424
lea ecx, [ebp - 0x8a4]
call fcn.10003810
mov byte [ebp - 4], 0x19
push str.USERPROFILE
lea ecx, [ebp - 0x88c]
call fcn.10003810
mov byte [ebp - 4], 0x1a
push str.WINDIR
lea ecx, [ebp - 0x874]
call fcn.10003810
mov byte [ebp - 4], 0x1b
push str.PROGRAMW6432
lea ecx, [ebp - 0x85c]
call fcn.10003810
mov byte [ebp - 4], 0x1c
push str.PROGRAMFILES_x86_
lea ecx, [ebp - 0x844]
call fcn.10003810
mov byte [ebp - 4], 0x1d
push str.COMMONPROGRAMW6432
lea ecx, [ebp - 0x82c]
call fcn.10003810
mov byte [ebp - 4], 0x1e
xor esi, esi
mov dword [ebp - 0xa64], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop
cmp esi, 0x12
je 0x10005262
lea eax, [esi + esi*2]
lea ecx, [ebp - 0x9c4]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0xa0c]
call fcn.10003780
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0x9fc], 0
je 0x10005247
lea eax, [ebp - 0xa0c]
cmp dword [ebp - 0x9f8], 8
cmovae eax, dword [ebp - 0xa0c]
push 0x400
lea ecx, [ebp - 0x814]
push ecx
push eax
call ebx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9dc]
call fcn.10003d10
cmp dword [ebp - 0x9cc], 0
je 0x10005247
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ebp - 0xa54]
call fcn.10003090
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0xa5c]
push eax
mov ecx, edi
call fcn.100035d0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0xa54]
call fcn.10003b80
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xa0c]
call fcn.10003a70
inc esi
mov dword [ebp - 0xa64], esi
jmp 0x100051a0
mov byte [ebp - 4], 4
push fcn.10003a70
push 0x12
push 0x18
lea eax, [ebp - 0x9c4]
push eax
call fcn.100cfe53
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9dc]
call fcn.10003a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9f4]
call fcn.10003a70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 4