Function at 0x445820
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x468a6c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0x934
mov esi, ecx
call fcn.004534f0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x240], 0
test eax, eax
je 0x445888
mov ecx, eax
call fcn.0044e720
mov ecx, eax
jmp 0x44588a
xor ecx, ecx
xor edx, edx
lea ebx, [esi + 0x620]
xor eax, eax
mov word [ebx], dx
mov word [esi + 0xc3c], dx
mov edx, dword [esi + 0x828]
lea ebp, [esi + 0xa34]
mov dword [esp + 0x240], 0xffffffff
mov dword [esi], ecx
mov word [esi + 0x418], ax
mov dword [esp + 0x14], 0x104
mov word [ebp], ax
test edx, edx
jne 0x4459a5
cmp word [esi + 8], dx
lea edi, [esi + 8]
je 0x445942
push edi
call fcn.0044e730
cmp eax, 0x100
mov edx, ebx
jle 0x44590c
mov eax, str.Windows_x64
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4458f1
mov dword [esi + 0x828], 2
jmp 0x44592c
mov eax, str.Windows_NT_x86
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x445913
mov dword [esi + 0x828], 1
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esi + 0x82c]
push ecx
jmp 0x4459fe
call fcn.0044b710
mov edx, ebx
test eax, eax
jne 0x44596f
mov eax, str.Windows_NT_x86
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x445954
mov dword [esi + 0x828], 1
jmp 0x44598f
mov eax, str.Windows_x64
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x445976
mov dword [esi + 0x828], 2
lea edx, [esp + 0x14]
push edx
push 0x104
lea eax, [esi + 0x82c]
push eax
jmp 0x445a3b
cmp edx, 1
jne 0x4459c2
mov eax, str.Windows_NT_x86
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4459b3
cmp dword [esi + 0x828], 2
jne 0x4459e3
mov eax, str.Windows_x64
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4459d4
cmp word [esi + 8], 0
lea edi, [esi + 8]
je 0x445a2a
lea ecx, [esp + 0x14]
push ecx
push 0x104
lea edx, [esi + 0x82c]
push edx
push 1
push ebx
push edi
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push str._s_admin_
push ebp
call ebx
push edi
lea eax, [esi + 0xc3c]
push str._s_admin_System32
push eax
call ebx
add esp, 0x18
jmp 0x445a63
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esi + 0x82c]
push ecx
push 1
push ebx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
lea eax, [esi + 0xc3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x434
call fcn.004534f0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x240], 1
test eax, eax
je 0x445a9a
mov edx, dword [esi + 0x828]
push edx
lea ecx, [esi + 0x210]
push ecx
mov ecx, eax
call fcn.004077d0
jmp 0x445a9c
xor eax, eax
mov dword [esp + 0x240], 0xffffffff
mov dword [esi + 4], eax
test eax, eax
je 0x445b9f
push str.SourceDisksNames
mov ecx, eax
call fcn.004070c0
mov ebx, eax
xor ebp, ebp
xor edi, edi
cmp ebx, ebp
jle 0x445b9f
lea esp, [esp]
push 0x206
lea eax, [esp + 0x32]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x24], ebp
mov word [esp + 0x38], dx
call fcn.00453450
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
push edi
push str.SourceDisksNames
call fcn.004072e0
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
call fcn.00406bf0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push 0x104
lea edx, [esp + 0x34]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
call fcn.00406c10
mov ecx, dword [esi + 0x4fc4]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x20c
mov dword [ecx + esi + 0xe44], edx
cmp word [esp + 0x2c], bp
je 0x445b7a
mov eax, dword [esi + 0x4fc4]
imul eax, eax, 0x20c
lea ecx, [esp + 0x2c]
lea edx, [eax + esi + 0xe48]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x445b67
jmp 0x445b90
mov ecx, dword [esi + 0x4fc4]
imul ecx, ecx, 0x20c
xor edx, edx
mov word [ecx + esi + 0xe48], dx
inc dword [esi + 0x4fc4]
inc edi
cmp edi, ebx
jl 0x445ad0
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00453432
add esp, 0x230
ret