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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dac29
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 0x48c486
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 0x48c4ad
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.004a83c0
mov eax, dword [ebp + 8]
add esp, 0xc
or edi, 0xffffffff
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x48c4ee
mov ecx, ebx
call fcn.0041ca30
jmp 0x48c7db
jns 0x48c4fa
push 0x80070057
call fcn.0041cdf0
cmp word [eax], 0x25
jne 0x48c7d0
cmp edx, 1
jle 0x48c7d0
add eax, 2
push 0x25
push eax
call fcn.004a7ec1
add esp, 8
test eax, eax
je 0x48c7d0
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
jle 0x48c7d0
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 0x48c572
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 0x48c5cf
push str._APPDATA_ALL_USER_
push esi
call fcn.004a7c3e
add esp, 8
test eax, eax
je 0x48c5cf
sub eax, esi
sar eax, 1
js 0x48c5cf
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48c752
push ecx
push str._APPDATA_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c600
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48c752
push ecx
push str._TEMP_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c631
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48c752
push ecx
push str._SYSTEM_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c65d
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x48c752
push ecx
push str._WINDOWS_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c689
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x48c752
push ecx
push str._QQ_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c6bb
lea ecx, [ebp - 0x218]
call fcn.0048c860
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48c752
push ecx
push str._CUR_MODULE_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c6f3
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 0x48c752
push ecx
push str._CUR_EXE_MODULE_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c72b
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 0x48c752
push ecx
push str._CUR_DIR_
lea ecx, [ebp - 0x21c]
call fcn.00421c70
test eax, eax
js 0x48c7b5
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], 0
jbe 0x48c7bd
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 0x48c78d
push 0x5c
lea ecx, [ebp - 0x220]
call fcn.0045a5c0
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 0x48c7dd
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 0x48c7dd
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 0x48c7fe
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 0x48c819
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 0x48c838
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.004a578d
mov esp, ebp
pop ebp
ret