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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d96f9
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.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x48b386
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 1
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x48b3ad
push 0x80004005
call fcn.0041ce60
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.004a73c0
mov eax, dword [ebp + 8]
add esp, 0xc
or edi, 0xffffffff
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x48b3ee
mov ecx, ebx
call fcn.0041caa0
jmp 0x48b6db
jns 0x48b3fa
push 0x80070057
call fcn.0041ce60
cmp word [eax], 0x25
jne 0x48b6d0
cmp edx, 1
jle 0x48b6d0
add eax, 2
push 0x25
push eax
call fcn.004a6ec1
add esp, 8
test eax, eax
je 0x48b6d0
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
jle 0x48b6d0
inc eax
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004220d0
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0041c740
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 0x48b472
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.0041c740
lea ecx, [ebp - 0x21c]
call fcn.00442290
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jl 0x48b4cf
push str._APPDATA_ALL_USER_
push esi
call fcn.004a6c3e
add esp, 8
test eax, eax
je 0x48b4cf
sub eax, esi
sar eax, 1
js 0x48b4cf
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b652
push ecx
push str._APPDATA_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b500
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b652
push ecx
push str._TEMP_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b531
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b652
push ecx
push str._SYSTEM_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b55d
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x48b652
push ecx
push str._WINDOWS_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b589
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x48b652
push ecx
push str._QQ_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b5bb
lea ecx, [ebp - 0x218]
call fcn.0048b760
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48b652
push ecx
push str._CUR_MODULE_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b5f3
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 0x48b652
push ecx
push str._CUR_EXE_MODULE_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b62b
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 0x48b652
push ecx
push str._CUR_DIR_
lea ecx, [ebp - 0x21c]
call fcn.00421ec0
test eax, eax
js 0x48b6b5
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], 0
jbe 0x48b6bd
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.0043f500
cmp ax, 0x5c
jne 0x48b68d
push 0x5c
lea ecx, [ebp - 0x220]
call fcn.00458590
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea ecx, [ebp + 8]
call fcn.00420950
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041c740
mov ebx, dword [ebp - 0x224]
jmp 0x48b6dd
xor eax, eax
mov dword [ebp - 0x224], eax
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041c740
mov ebx, dword [ebp - 0x224]
jmp 0x48b6dd
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0041c740
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 0x48b6fe
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 0x48b719
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 0x48b738
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.004a474b
mov esp, ebp
pop ebp
ret