Function at 0x441620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46385c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f038]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0x934
mov esi, ecx
call fcn.0044e29f
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x240], 0
test eax, eax
je 0x441688
mov ecx, eax
call fcn.0044a520
mov ecx, eax
jmp 0x44168a
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 0x4417a5
cmp word [esi + 8], dx
lea edi, [esi + 8]
je 0x441742
push edi
call fcn.0044a530
cmp eax, 0x100
mov edx, ebx
jle 0x44170c
mov eax, str.Windows_x64
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4416f1
mov dword [esi + 0x828], 2
jmp 0x44172c
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 0x441713
mov dword [esi + 0x828], 1
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esi + 0x82c]
push ecx
jmp 0x4417fe
call fcn.00447510
mov edx, ebx
test eax, eax
jne 0x44176f
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 0x441754
mov dword [esi + 0x828], 1
jmp 0x44178f
mov eax, str.Windows_x64
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x441776
mov dword [esi + 0x828], 2
lea edx, [esp + 0x14]
push edx
push 0x104
lea eax, [esi + 0x82c]
push eax
jmp 0x44183b
cmp edx, 1
jne 0x4417c2
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 0x4417b3
cmp dword [esi + 0x828], 2
jne 0x4417e3
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 0x4417d4
cmp word [esi + 8], 0
lea edi, [esi + 8]
je 0x44182a
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 0x441863
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.0044e29f
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x240], 1
test eax, eax
je 0x44189a
mov edx, dword [esi + 0x828]
push edx
lea ecx, [esi + 0x210]
push ecx
mov ecx, eax
call fcn.00407660
jmp 0x44189c
xor eax, eax
mov dword [esp + 0x240], 0xffffffff
mov dword [esi + 4], eax
test eax, eax
je 0x44199f
push str.SourceDisksNames
mov ecx, eax
call fcn.00406f50
mov ebx, eax
xor ebp, ebp
xor edi, edi
cmp ebx, ebp
jle 0x44199f
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.0044e1b0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
push edi
push str.SourceDisksNames
call fcn.00407170
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
call fcn.00406a80
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.00406aa0
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 0x44197a
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 0x441967
jmp 0x441990
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 0x4418d0
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.0044e1a0
add esp, 0x230
ret