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

Disassembly:
push 0xffffffffffffffff
push 0x49ef48
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0xa38], eax
push ebx
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0xa4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa5c]
xor ebx, ebx
mov dword [esp + 0xa54], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
call fcn.00468b49
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4264bc
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, dword [esp + 0xa60]
lea edx, [esp + 0x10]
push edx
push edi
xor ecx, ecx
push ebx
mov dword [esp + 0xa60], ebx
mov dword [esp + 0x24], 1
mov word [esp + 0x234], cx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x426512
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x426525
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x426565
lea eax, [esp + 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x426541
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x22c]
push eax
mov ecx, esi
call fcn.00401760
jmp 0x426656
mov ecx, esi
call fcn.00401580
mov eax, edi
sub eax, 0x1a
je 0x4265c1
sub eax, 0xb
je 0x426592
sub eax, 1
jne 0x426656
push str.C:Program_Files
mov ecx, esi
call fcn.00406520
jmp 0x426656
push 0x410
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x426656
lea edx, [esp + 0x228]
push edx
mov ecx, esi
call fcn.00401d90
jmp 0x426656
push 0x104
lea eax, [esp + 0x24]
push eax
cmp dword [0x4d7de8], ebx
je 0x4265f2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x426656
lea ecx, [esp + 0x20]
push ecx
push str._sApplication_Data
push esi
call fcn.00404580
add esp, 0xc
jmp 0x426656
xor edx, edx
push str._USERPROFILE_
mov word [esp + 0x2c], dx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x426656
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.0041be60
add esp, 8
test eax, eax
je 0x426656
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00443f20
mov eax, dword [eax]
push eax
push str._sApplication_Data
push esi
mov dword [esp + 0xa6c], 1
call fcn.00404580
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0xa54], bl
call fcn.0041f860
mov eax, dword [esi]
push ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00443f20
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0xa58], 2
call fcn.00401a50
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xa54], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4266a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa38]
xor ecx, esp
call fcn.00482b5f
add esp, 0xa48
ret