Function at 0x445d90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cd79c
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0x888], ebx
push ebx
push 0x4dd578
lea esi, [esp + 0x60]
call fcn.004102a0
call fcn.00442b70
test al, al
je 0x445e1f
mov ecx, esi
call fcn.00447970
test al, al
jne 0x445e1f
push ebx
push 0x4dd578
call fcn.004102a0
cmp dword [esp + 0x6c], ebx
jne 0x445e7e
push 0x800
lea ecx, [esp + 0x78]
push ebx
push ecx
call fcn.004ab450
add esp, 0xc
push 0x400
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [esp + 0x74]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x445e60
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x78]
push ecx
lea esi, [esp + 0x60]
call fcn.004102a0
push 7
push str.WIN_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 1
mov edi, dword [esp + 0x50]
add edi, 0x10
mov edx, esi
push edx
mov ecx, edi
mov dword [esp + 0x30], edi
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
lea eax, [esp + 0x60]
call fcn.0040f4f0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x445ee5
mov eax, dword [esp + 0x14]
push eax
call fcn.004993dd
add esp, 4
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
je 0x446008
lea esi, [eax - 1]
cmp esi, eax
jbe 0x445f12
call fcn.004aa300
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
mov edi, 8
cmp dword [esp + 0x70], edi
jae 0x445f25
lea ecx, [esp + 0x5c]
cmp word [ecx + esi*2], 0x5c
jne 0x445f4a
lea esi, [eax - 1]
cmp esi, eax
jbe 0x445f38
call fcn.004aa300
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x445f46
lea eax, [esp + 0x5c]
mov word [eax + esi*2], bx
push 7
push str.INF_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 2
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x38]
push edx
mov edi, str.Inf
call fcn.00448620
add esp, 8
mov esi, eax
mov byte [esp + 0x888], 3
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, esi
call fcn.0040f4f0
mov byte [esp + 0x888], 2
cmp dword [esp + 0x4c], 8
jb 0x445fca
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004993dd
add esp, 4
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x445ff7
mov edx, dword [esp + 0x14]
push edx
call fcn.004993dd
add esp, 4
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
push 0x800
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.004ab450
add esp, 0xc
push 0x400
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4460c4
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 7
push str.SYS_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 4
mov eax, esi
push eax
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x74]
lea esi, [ecx + 2]
jmp 0x446080
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x446080
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
call fcn.004102a0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x4460b7
mov edx, dword [esp + 0x14]
push edx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], 7
jmp 0x446183
cmp dword [esp + 0x6c], ebx
je 0x44618c
push 7
push str.SYS_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 5
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edi, str.System32
call fcn.00448620
add esp, 8
mov esi, eax
mov byte [esp + 0x888], 6
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, esi
call fcn.0040f4f0
mov byte [esp + 0x888], 5
cmp dword [esp + 0x4c], 8
jb 0x44614e
mov eax, dword [esp + 0x38]
push eax
call fcn.004993dd
add esp, 4
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x44617b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004993dd
add esp, 4
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov word [esp + 0x14], bx
mov dword [esp + 0x24], ebx
push 0x800
lea edx, [esp + 0x78]
push ebx
push edx
call fcn.004ab450
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp dword [esp + 0x70], 8
jae 0x4461ae
lea eax, [esp + 0x5c]
push 0x3ff
push eax
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.004a9be0
add esp, 0x10
push 7
push str.SYS_DRV
lea esi, [esp + 0x18]
mov word [esp + 0x80], bx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 7
mov ecx, esi
push ecx
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x74]
lea esi, [ecx + 2]
jmp 0x446210
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x446210
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x78]
push edx
mov esi, eax
call fcn.004102a0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x446247
mov eax, dword [esp + 0x14]
push eax
call fcn.004993dd
add esp, 4
push 0x800
lea ecx, [esp + 0x78]
push ebx
push ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.004ab450
add esp, 0xc
lea edx, [esp + 0x74]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x446314
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 8
push str.TEMP_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 8
mov ecx, esi
push ecx
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x74]
lea esi, [ecx + 2]
jmp 0x4462d0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4462d0
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x78]
push edx
mov esi, eax
call fcn.004102a0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x446307
mov eax, dword [esp + 0x14]
push eax
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], 7
jmp 0x4463d3
cmp dword [esp + 0x6c], ebx
je 0x4463dc
push 8
push str.TEMP_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 9
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x38]
push edx
mov edi, str.Temp
call fcn.00448620
add esp, 8
mov esi, eax
mov byte [esp + 0x888], 0xa
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, esi
call fcn.0040f4f0
mov byte [esp + 0x888], 9
cmp dword [esp + 0x4c], 8
jb 0x44639e
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004993dd
add esp, 4
mov esi, 7
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x4463cb
mov edx, dword [esp + 0x14]
push edx
call fcn.004993dd
add esp, 4
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov word [esp + 0x14], bx
mov dword [esp + 0x24], ebx
push 0x800
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.004ab450
add esp, 0xc
push ebx
push 0x26
lea ecx, [esp + 0x7c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44649d
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0x11
push str.PROGRAM_FILES_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 0xb
mov eax, esi
push eax
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x74]
lea esi, [ecx + 2]
jmp 0x446450
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x446450
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
call fcn.004102a0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x446487
mov edx, dword [esp + 0x14]
push edx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
jmp 0x446526
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
cmp eax, ebx
je 0x446526
add eax, 0x3cb8
cmp eax, ebx
je 0x446526
cmp dword [eax], ebx
je 0x446526
push ebx
push 1
push 0x800
lea ecx, [esp + 0x80]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, str.ProgramFilesDir
mov edx, str.SoftwareMicrosoftWindowsCurrentVersion
call fcn.00456030
add esp, 0x14
test eax, eax
jne 0x446526
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov edx, str.PROGRAM_FILES_DIR
lea eax, [esp + 0x34]
call fcn.00411be0
mov byte [esp + 0x888], 0xc
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0040fa50
push eax
lea edx, [esp + 0x78]
call fcn.00410270
mov byte [esp + 0x888], bl
lea esi, [esp + 0x34]
call fcn.00411bb0
push 0x800
lea ecx, [esp + 0x78]
push ebx
push ecx
call fcn.004ab450
add esp, 0xc
push ebx
push 0x17
lea edx, [esp + 0x7c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4465dd
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0xc
push str.PROGRAMS_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 0xd
mov ecx, esi
push ecx
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x74]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x446595
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x78]
push edx
mov esi, eax
call fcn.004102a0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x4465cc
mov eax, dword [esp + 0x14]
push eax
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
push 0x800
lea ecx, [esp + 0x78]
push ebx
push ecx
call fcn.004ab450
add esp, 0xc
lea edx, [esp + 0x54]
push edx
push 0x400
lea eax, [esp + 0x7c]
push eax
push 1
push ebx
push ebx
mov dword [esp + 0x6c], ebx
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
je 0x4466a4
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0xa
push str.PNTDRV_DIR
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.004102a0
mov byte [esp + 0x888], 0xe
mov edx, esi
push edx
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x74]
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x446660
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
call fcn.004102a0
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], 8
jb 0x446697
mov edx, dword [esp + 0x14]
push edx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], 7
jmp 0x44681f
cmp dword [esp + 0x6c], ebx
je 0x446828
lea esi, [esp + 0x34]
call fcn.0045b660
mov byte [esp + 0x888], 0xf
mov al, byte [eax + 0x18]
mov byte [esp + 0x33], al
mov byte [esp + 0x888], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x34], vtable.CWow64.0
je 0x4466e4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, str.TEMP_DIR
lea eax, [esp + 0x10]
call fcn.00411be0
cmp byte [esp + 0x33], bl
je 0x44678c
mov byte [esp + 0x888], 0x10
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x38]
push edx
mov edi, str.System32_spooldriversx64
call fcn.00448620
add esp, 8
mov esi, eax
mov byte [esp + 0x888], 0x11
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, esi
call fcn.0040f4f0
mov byte [esp + 0x888], 0x10
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x44675f
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004993dd
add esp, 4
mov edi, 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], esi
jb 0x44681b
mov edx, dword [esp + 0x14]
push edx
jmp 0x446813
mov byte [esp + 0x888], 0x12
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edi, str.System32_spooldriversw32x86
call fcn.00448620
add esp, 8
mov esi, eax
mov byte [esp + 0x888], 0x13
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, esi
call fcn.0040f4f0
mov byte [esp + 0x888], 0x12
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x4467ef
mov eax, dword [esp + 0x38]
push eax
call fcn.004993dd
add esp, 4
mov edi, 7
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
mov byte [esp + 0x888], bl
cmp dword [esp + 0x28], esi
jb 0x44681b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov dword [esp + 0x888], 0xffffffff
cmp dword [esp + 0x70], 8
jb 0x446847
mov edx, dword [esp + 0x5c]
push edx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.004a998e
mov esp, ebp
pop ebp
ret 4