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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fc9e
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 0x48baa1
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 0x48baab
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.004dfec0
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x48b4b6
mov ecx, ebx
call fcn.0044f770
jmp 0x48ba13
js 0x48ba97
cmp word [eax], 0x25
jne 0x48b9aa
cmp edx, 1
jle 0x48b969
add eax, 2
push 0x25
push eax
call fcn.004e037b
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x48b969
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x48b969
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp + 8]
call fcn.0048d250
mov byte [ebp - 4], 3
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x48b571
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x48b55c
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x48b55c
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x48b551
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 0x48b571
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 0x48b593
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 0x48b5f5
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x48b5e0
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x48b5e0
push ecx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x48b5d5
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 0x48b5f5
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 0x48ba97
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x48b623
push ebx
lea ecx, [ebp - 0x228]
call fcn.0044f7d0
mov esi, dword [ebp - 0x228]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004ea426
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x48ba97
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
cmp dword [esi - 0xc], eax
jl 0x48b67b
push str._APPDATA_ALL_USER_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b67b
sub eax, esi
sar eax, 1
js 0x48b67b
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._APPDATA_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b6b9
sub eax, esi
sar eax, 1
js 0x48b6b9
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._TEMP_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b6f7
sub eax, esi
sar eax, 1
js 0x48b6f7
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._SYSTEM_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b730
sub eax, esi
sar eax, 1
js 0x48b730
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._WINDOWS_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b769
sub eax, esi
sar eax, 1
js 0x48b769
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._QQ_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b7a8
sub eax, esi
sar eax, 1
js 0x48b7a8
lea ecx, [ebp - 0x218]
call fcn.0048bac0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._CUR_MODULE_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b7ca
sub eax, esi
sar eax, 1
jns 0x48b7ec
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._CUR_EXE_MODULE_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b80f
sub eax, esi
sar eax, 1
js 0x48b80f
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 0x48b84b
cmp dword [esi - 0xc], 0
jl 0x48b8e3
push str._CUR_DIR_
push esi
call fcn.004e0110
add esp, 8
test eax, eax
je 0x48b8e3
sub eax, esi
sar eax, 1
js 0x48b8e3
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], 0
jbe 0x48b8ed
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 0x48ba97
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 0xc]
jg 0x48ba97
cmp word [eax + ecx*2], 0x5c
jne 0x48b8d1
mov eax, dword [edi - 8]
lea ebx, [ecx + 1]
mov edx, 1
sub eax, ebx
sub edx, dword [edi - 4]
or eax, edx
jge 0x48b8b6
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 0x48ba97
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.0048c360
jmp 0x48b8ed
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 0x48ba1d
cmp dword [ebx + 0xc], 0
jl 0x48b959
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x48b959
push dword [ebp - 0x21c]
call fcn.0048d310
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 0x48b943
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 0x48ba1d
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.0044f580
jmp 0x48ba1d
mov ebx, dword [ebx]
lea edx, [eax - 0x10]
sub ebx, 0x10
cmp edx, ebx
je 0x48ba13
cmp dword [ebx + 0xc], 0
jl 0x48b9a5
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x48b9a5
push edx
call fcn.0048d310
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 0x48b9f9
jmp 0x48b9eb
push dword [eax - 0xc]
jmp 0x48ba07
mov ebx, dword [ebx]
lea ecx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x220], ecx
cmp ecx, ebx
je 0x48ba13
cmp dword [ebx + 0xc], 0
jl 0x48ba06
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x48ba06
push dword [ebp - 0x220]
call fcn.0048d310
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 0x48b9f3
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 0x48ba13
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 0x48ba3b
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 0x48ba56
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 0x48ba75
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.004de0fd
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
int3