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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4e2c55
call fcn.004bea3c
mov eax, dword [ebp + 0x214]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004012d0
add eax, 0x10
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x10]
call fcn.00416d00
push 0x206
lea eax, [ebp + 2]
push ebx
mov byte [ebp - 4], 2
push eax
mov word [ebp], bx
call fcn.004be320
add esp, 0xc
lea edi, [ebp + 0x218]
call fcn.00408010
mov edi, str._APPDATA_ALL_USER_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x4931e6
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
push 0x104
lea eax, [ebp]
push eax
push str._ALLUSERSPROFILE_
jmp 0x493248
mov edi, str._APPDATA_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x493218
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
push 0x104
lea eax, [ebp]
push eax
push str._APPDATA_
jmp 0x493248
mov edi, str._TEMP_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x493253
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
push 0x104
lea eax, [ebp]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4933f0
mov edi, str._SYSTEM_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x493289
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4933f0
mov edi, str._WINDOWS_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x4932bf
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x4933f0
mov edi, str._QQ_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x4932ee
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
lea ecx, [ebp]
call fcn.0049346d
jmp 0x4933b3
mov edi, str._CUR_MODULE_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x493381
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
lea eax, [ebp - 0x1c]
push eax
mov ecx, str.Kernel32.dll
call fcn.004099e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004927aa
lea ecx, [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00416ce0
push str.GetModuleHandleExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
je 0x493358
lea ecx, [ebp - 0x14]
push ecx
push fcn.0049313e
push 4
call eax
push 0x104
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp esi, ebx
jne 0x4933f0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4933f0
mov edi, str._CUR_EXE_MODULE_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x4933bf
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
push 0x104
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4933f0
mov edi, str._CUR_DIR_
xor ecx, ecx
mov edx, edi
lea esi, [ebp + 0x218]
call fcn.00406080
test eax, eax
jl 0x4933f0
mov edx, edi
lea edi, [ebp - 0x10]
call fcn.004049e0
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x493417
lea eax, [ebp]
push eax
call fcn.004c65dc
test eax, eax
pop ecx
jbe 0x493417
lea eax, [ebp]
push eax
push esi
lea eax, [ebp + 0x218]
push eax
call fcn.00407df0
mov eax, dword [ebp + 0x218]
add eax, 0xfffffff0
call fcn.004012d0
mov esi, dword [ebp - 0x20]
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00416ce0
lea ecx, [ebp - 0x18]
call fcn.00416ce0
lea ecx, [ebp + 0x218]
call fcn.00416ce0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004b84de
add ebp, 0x20c
leave
ret