Function at 0x448920
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4bb1ef
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x20]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x448e2a
push str.WINDOWS
lea ecx, [esp + 0x18]
call fcn.00405b00
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x43c], 0
call fcn.00447090
lea edx, [esp + 0x1c]
lea ecx, [edx + 2]
mov di, word [edx]
add edx, 2
test di, di
jne 0x4489a0
sub edx, ecx
sar edx, 1
push edx
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.00401700
mov eax, dword [esp + 0x14]
or edi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x438], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4489e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004586e0
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x208
lea ecx, [esp + 0x20]
push ecx
je 0x448a29
call fcn.00458960
add esp, 8
test al, al
je 0x448e2a
push str.SYSTEMx86
lea ecx, [esp + 0x18]
call fcn.00405b00
mov dword [esp + 0x438], 1
jmp 0x448a4c
call ebx
test eax, eax
jbe 0x448e2a
push str.SYSTEMx86
lea ecx, [esp + 0x18]
call fcn.00405b00
mov dword [esp + 0x438], 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00447090
mov ecx, eax
call fcn.00401840
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
mov dword [esp + 0x438], edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448a8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004586e0
test al, al
je 0x448b02
lea ecx, [esp + 0x10]
call fcn.00458a50
push 0x208
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x440], 3
call ebx
test eax, eax
jbe 0x448e1a
push str.SYSTEMx64
lea ecx, [esp + 0x18]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x440], 4
call fcn.00447090
mov ecx, eax
call fcn.00401840
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x438], edi
call fcn.00458a70
push 0x208
lea ecx, [esp + 0x20]
push ecx
push 0x26
mov ecx, esi
call fcn.00448140
test al, al
je 0x448b70
push str.PROGRAMFILESx86
lea ecx, [esp + 0x14]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x440], 5
call fcn.00447090
mov ecx, eax
call fcn.00401840
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x438], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448b70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004586e0
test al, al
je 0x448bcf
push 0x208
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00447f80
test al, al
je 0x448bcf
push str.PROGRAMFILESx64
lea ecx, [esp + 0x14]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x440], 6
call fcn.00447090
mov ecx, eax
call fcn.00401840
lea ecx, [esp + 0x10]
mov dword [esp + 0x438], edi
call fcn.004014c0
push 0x208
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004481f0
test al, al
je 0x448c3b
push str.COLORPROFILES
lea ecx, [esp + 0x14]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x440], 7
call fcn.00447090
mov ecx, eax
call fcn.00401840
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x438], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x208
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x448e2a
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.MODULEDIR
lea ecx, [esp + 0x14]
call fcn.00405b00
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x440], 8
call fcn.00447090
mov ecx, eax
call fcn.00401840
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x438], edi
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x448cb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x208
lea ecx, [esp + 0x20]
push ecx
push 0x17
mov ecx, esi
call fcn.00448140
test al, al
je 0x448d0f
push str.ALLUSERS_PROGRAM
lea ecx, [esp + 0x14]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x440], 9
call fcn.00447090
mov ecx, eax
call fcn.00401840
lea ecx, [esp + 0x10]
mov dword [esp + 0x438], edi
call fcn.004014c0
push 0x208
lea ecx, [esp + 0x20]
push ecx
push 0x19
mov ecx, esi
call fcn.00448140
test al, al
je 0x448d67
push str.ALLUSERS_DESKTOP
lea ecx, [esp + 0x14]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x440], 0xa
call fcn.00447090
mov ecx, eax
call fcn.00401840
lea ecx, [esp + 0x10]
mov dword [esp + 0x438], edi
call fcn.004014c0
push 0x208
lea ecx, [esp + 0x20]
push ecx
push 0x18
mov ecx, esi
call fcn.00448140
test al, al
je 0x448dbf
push str.ALLUSERS_STARTUP
lea ecx, [esp + 0x14]
call fcn.00405b00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x440], 0xb
call fcn.00447090
mov ecx, eax
call fcn.00401840
lea ecx, [esp + 0x10]
mov dword [esp + 0x438], edi
call fcn.004014c0
push 0x208
lea ecx, [esp + 0x228]
push ecx
push 0x23
mov ecx, esi
call fcn.00448140
test al, al
je 0x448e16
push str.PROGRAMDATA
lea ecx, [esp + 0x1c]
call fcn.00405b00
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x440], 0xc
call fcn.00447090
mov ecx, eax
call fcn.00401840
lea ecx, [esp + 0x18]
call fcn.004014c0
mov al, 1
jmp 0x448e2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x438], edi
call fcn.00458a70
xor al, al
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004888ae
add esp, 0x42c
ret