Function at 0x48c950
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db269
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x48c9a6
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x48c9cd
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004a8960
mov eax, dword [ebp + 8]
add esp, 0xc
or edi, 0xffffffff
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x48ca0e
mov ecx, ebx
call fcn.0041ca30
jmp 0x48ccfb
jns 0x48ca1a
push 0x80070057
call fcn.0041cdf0
cmp word [eax], 0x25
jne 0x48ccf0
cmp edx, 1
jle 0x48ccf0
add eax, 2
push 0x25
push eax
call fcn.004a8461
add esp, 8
test eax, eax
je 0x48ccf0
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
jle 0x48ccf0
inc eax
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00421e80
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0041c6d0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ca92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041c6d0
lea ecx, [ebp - 0x21c]
call fcn.004434c0
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jl 0x48caef
push str._APPDATA_ALL_USER_
push esi
call fcn.004a81de
add esp, 8
test eax, eax
je 0x48caef
sub eax, esi
sar eax, 1
js 0x48caef
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48cc72
push ecx
push str._APPDATA_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cb20
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48cc72
push ecx
push str._TEMP_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cb51
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48cc72
push ecx
push str._SYSTEM_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cb7d
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x48cc72
push ecx
push str._WINDOWS_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cba9
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x48cc72
push ecx
push str._QQ_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cbdb
lea ecx, [ebp - 0x218]
call fcn.0048cd80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48cc72
push ecx
push str._CUR_MODULE_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cc13
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48cc72
push ecx
push str._CUR_EXE_MODULE_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48cc4b
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48cc72
push ecx
push str._CUR_DIR_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48ccd5
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], 0
jbe 0x48ccdd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
call fcn.00440120
cmp ax, 0x5c
jne 0x48ccad
push 0x5c
lea ecx, [ebp - 0x220]
call fcn.0045a800
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea ecx, [ebp + 8]
call fcn.00420700
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041c6d0
mov ebx, dword [ebp - 0x224]
jmp 0x48ccfd
xor eax, eax
mov dword [ebp - 0x224], eax
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041c6d0
mov ebx, dword [ebp - 0x224]
jmp 0x48ccfd
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041c6d0
xor ebx, ebx
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48cd1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48cd39
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x48cd58
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret