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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c9de
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x54b144]
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, dword [ebp + 0xc]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 1
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x48b841
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 1
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x48b84b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004dcc10
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x48b256
mov ecx, ebx
call fcn.0044f630
jmp 0x48b7b3
js 0x48b837
cmp word [eax], 0x25
jne 0x48b74a
cmp edx, 1
jle 0x48b709
add eax, 2
push 0x25
push eax
call fcn.004dd0cb
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x48b709
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x48b709
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp + 8]
call fcn.0048cd70
mov byte [ebp - 4], 3
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x48b311
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x48b2fc
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x48b2fc
push edx
call fcn.0048ce30
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x48b2f1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x21c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
jmp 0x48b311
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0044f440
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b333
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x48b395
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x48b380
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x48b380
push ecx
call fcn.0048ce30
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x48b375
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x21c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
jmp 0x48b395
push dword [edi - 0xc]
lea ecx, [ebp - 0x228]
push edi
call fcn.0044f440
mov esi, dword [ebp - 0x228]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x48b837
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x48b3c3
push ebx
lea ecx, [ebp - 0x228]
call fcn.0044f690
mov esi, dword [ebp - 0x228]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004e7176
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x48b837
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jl 0x48b41b
push str._APPDATA_ALL_USER_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b41b
sub eax, esi
sar eax, 1
js 0x48b41b
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._APPDATA_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b459
sub eax, esi
sar eax, 1
js 0x48b459
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._TEMP_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b497
sub eax, esi
sar eax, 1
js 0x48b497
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._SYSTEM_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b4d0
sub eax, esi
sar eax, 1
js 0x48b4d0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._WINDOWS_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b509
sub eax, esi
sar eax, 1
js 0x48b509
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._QQ_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b548
sub eax, esi
sar eax, 1
js 0x48b548
lea ecx, [ebp - 0x218]
call fcn.0048b860
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._CUR_MODULE_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b56a
sub eax, esi
sar eax, 1
jns 0x48b58c
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._CUR_EXE_MODULE_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b5af
sub eax, esi
sar eax, 1
js 0x48b5af
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 0x48b5eb
cmp dword [esi - 0xc], 0
jl 0x48b683
push str._CUR_DIR_
push esi
call fcn.004dce60
add esp, 8
test eax, eax
je 0x48b683
sub eax, esi
sar eax, 1
js 0x48b683
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], 0
jbe 0x48b68d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [edi - 0xc]
mov dword [ebp - 0x21c], ecx
test ecx, ecx
js 0x48b837
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 0xc]
jg 0x48b837
cmp word [eax + ecx*2], 0x5c
jne 0x48b671
mov eax, dword [edi - 8]
lea ebx, [ecx + 1]
mov edx, 1
sub eax, ebx
sub edx, dword [edi - 4]
or eax, edx
jge 0x48b656
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0044f690
mov edi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
mov eax, 0x5c
mov word [edi + ecx*2], ax
cmp ebx, dword [edi - 8]
jg 0x48b837
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
lea eax, [ebp - 0x218]
push eax
push edi
lea ecx, [ebp + 8]
call fcn.0048be80
jmp 0x48b68d
mov dword [ebp - 0x230], 0
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp + 8]
mov ebx, dword [edx]
lea ecx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x21c], ecx
cmp ecx, ebx
je 0x48b7bd
cmp dword [ebx + 0xc], 0
jl 0x48b6f9
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x48b6f9
push dword [ebp - 0x21c]
call fcn.0048ce30
mov dword [ebp - 0x21c], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48b6e3
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x21c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x48b7bd
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.0044f440
jmp 0x48b7bd
mov ebx, dword [ebx]
lea edx, [eax - 0x10]
sub ebx, 0x10
cmp edx, ebx
je 0x48b7b3
cmp dword [ebx + 0xc], 0
jl 0x48b745
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x48b745
push edx
call fcn.0048ce30
add esp, 4
mov dword [ebp - 0x220], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48b799
jmp 0x48b78b
push dword [eax - 0xc]
jmp 0x48b7a7
mov ebx, dword [ebx]
lea ecx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x220], ecx
cmp ecx, ebx
je 0x48b7b3
cmp dword [ebx + 0xc], 0
jl 0x48b7a6
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x48b7a6
push dword [ebp - 0x220]
call fcn.0048ce30
mov dword [ebp - 0x220], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48b793
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
add eax, 0x10
mov dword [ecx], eax
jmp 0x48b7b3
push edx
mov ecx, dword [ebp - 0x224]
push eax
call fcn.0044f440
mov dword [ebp - 0x230], 0
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48b7db
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48b7f6
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], ebx
dec ebx
test ebx, ebx
jg 0x48b815
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
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.004dafe6
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00450130
push 0x80004005
call fcn.00450130
push 0x80004005
call fcn.00450130
int3