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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5100be
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x550144]
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.00450310
mov ecx, eax
test ecx, ecx
je 0x48ba31
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 1
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x48ba3b
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.004e02e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x48b446
mov ecx, ebx
call fcn.0044f770
jmp 0x48b9a3
js 0x48ba27
cmp word [eax], 0x25
jne 0x48b93a
cmp edx, 1
jle 0x48b8f9
add eax, 2
push 0x25
push eax
call fcn.004e079b
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x48b8f9
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x48b8f9
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp + 8]
call fcn.0048d1d0
mov byte [ebp - 4], 3
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x48b501
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x48b4ec
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x48b4ec
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x48b4e1
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 0x48b501
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0044f580
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 0x48b523
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 0x48b585
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x48b570
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x48b570
push ecx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x48b565
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 0x48b585
push dword [edi - 0xc]
lea ecx, [ebp - 0x228]
push edi
call fcn.0044f580
mov esi, dword [ebp - 0x228]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x48ba27
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x48b5b3
push ebx
lea ecx, [ebp - 0x228]
call fcn.0044f7d0
mov esi, dword [ebp - 0x228]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004ea846
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x48ba27
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jl 0x48b60b
push str._APPDATA_ALL_USER_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b60b
sub eax, esi
sar eax, 1
js 0x48b60b
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._APPDATA_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b649
sub eax, esi
sar eax, 1
js 0x48b649
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._TEMP_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b687
sub eax, esi
sar eax, 1
js 0x48b687
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._SYSTEM_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b6c0
sub eax, esi
sar eax, 1
js 0x48b6c0
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._WINDOWS_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b6f9
sub eax, esi
sar eax, 1
js 0x48b6f9
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._QQ_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b738
sub eax, esi
sar eax, 1
js 0x48b738
lea ecx, [ebp - 0x218]
call fcn.0048ba50
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._CUR_MODULE_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b75a
sub eax, esi
sar eax, 1
jns 0x48b77c
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._CUR_EXE_MODULE_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b79f
sub eax, esi
sar eax, 1
js 0x48b79f
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 0x48b7db
cmp dword [esi - 0xc], 0
jl 0x48b873
push str._CUR_DIR_
push esi
call fcn.004e0530
add esp, 8
test eax, eax
je 0x48b873
sub eax, esi
sar eax, 1
js 0x48b873
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], 0
jbe 0x48b87d
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 0x48ba27
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 0xc]
jg 0x48ba27
cmp word [eax + ecx*2], 0x5c
jne 0x48b861
mov eax, dword [edi - 8]
lea ebx, [ecx + 1]
mov edx, 1
sub eax, ebx
sub edx, dword [edi - 4]
or eax, edx
jge 0x48b846
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0044f7d0
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 0x48ba27
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.0048c2e0
jmp 0x48b87d
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 0x48b9ad
cmp dword [ebx + 0xc], 0
jl 0x48b8e9
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x48b8e9
push dword [ebp - 0x21c]
call fcn.0048d290
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 0x48b8d3
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 0x48b9ad
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.0044f580
jmp 0x48b9ad
mov ebx, dword [ebx]
lea edx, [eax - 0x10]
sub ebx, 0x10
cmp edx, ebx
je 0x48b9a3
cmp dword [ebx + 0xc], 0
jl 0x48b935
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x48b935
push edx
call fcn.0048d290
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 0x48b989
jmp 0x48b97b
push dword [eax - 0xc]
jmp 0x48b997
mov ebx, dword [ebx]
lea ecx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x220], ecx
cmp ecx, ebx
je 0x48b9a3
cmp dword [ebx + 0xc], 0
jl 0x48b996
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x48b996
push dword [ebp - 0x220]
call fcn.0048d290
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 0x48b983
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 0x48b9a3
push edx
mov ecx, dword [ebp - 0x224]
push eax
call fcn.0044f580
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 0x48b9cb
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 0x48b9e6
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 0x48ba05
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.004de51d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
int3