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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x565703
push eax
mov eax, 0x1120
mov dword fs:[0], esp
call fcn.00526b50
mov eax, dword [0x700320]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
push 0x7045ac
lea ecx, [esp + 0x28]
mov dword [esp + 0x113c], edi
call fcn.005442c4
push 0x7045ac
lea ecx, [esp + 0x20]
mov byte [esp + 0x113c], 1
call fcn.005442c4
push edi
lea ecx, [esp + 0x12c]
push 0x26
mov bl, 2
push ecx
push edi
mov byte [esp + 0x1148], bl
mov ebp, 1
mov word [esp + 0x138], di
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x128]
lea eax, [esp + 0x92c]
push edx
push eax
call fcn.00526ae2
lea ecx, [esp + 0x934]
push str.__x86_
push ecx
call fcn.005272d9
add esp, 0x10
cmp eax, edi
je 0x4c8544
mov word [eax], di
jmp 0x4c854c
mov word [esp + 0x92c], di
mov al, byte [esp + 0x1140]
mov word [esp + 0x28], di
test al, 1
je 0x4c8996
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.wimgapi.dll
call fcn.005442c4
call fcn.004c8030
add esp, 4
cmp eax, edi
jne 0x4c8996
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Windows_Imagingwimgapi.dll
call fcn.005442c4
push ecx
lea edx, [esp + 0x130]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x1144], 3
call fcn.005442c4
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 4
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00543fbd
call fcn.004c8030
add esp, 4
cmp eax, edi
jne 0x4c8996
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows_AIKTools_
call fcn.005442c4
push ecx
lea eax, [esp + 0x130]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x1144], 5
call fcn.005442c4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1140], bl
push ecx
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 6
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x6f6dd8
call fcn.005442c4
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 7
call fcn.00543fbd
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 8
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.wimgapi.dll
call fcn.005442c4
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0xb
call fcn.00543fbd
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0xc
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x18]
push edx
call fcn.00543fbd
call fcn.004c8030
add esp, 4
cmp eax, edi
jne 0x4c8996
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows_Imagingwimgapi.dll
call fcn.005442c4
push ecx
lea eax, [esp + 0x934]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x1144], 0xd
call fcn.005442c4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1140], bl
push ecx
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0xe
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00543fbd
call fcn.004c8030
add esp, 4
cmp eax, edi
jne 0x4c8996
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows_AIKTools_
call fcn.005442c4
push ecx
lea eax, [esp + 0x934]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x1144], 0xf
call fcn.005442c4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1140], bl
push ecx
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x10
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x6f6dd8
call fcn.005442c4
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x11
call fcn.00543fbd
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x12
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.wimgapi.dll
call fcn.005442c4
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x15
call fcn.00543fbd
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x16
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x18]
push edx
call fcn.00543fbd
call fcn.004c8030
add esp, 4
cmp eax, edi
jne 0x4c8996
cmp dword [0x75ed20], edi
jne 0x4c8938
push str.wimgapi.dll
push str.Error_loading__s.
push 0x20d0
call fcn.00506990
add esp, 8
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x4c8955
push str.WIMGAPI
push str.Error_initializing__s.
push 0x277b
call fcn.00506990
add esp, 8
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005412cd
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x68d870
call fcn.00544641
push str.Please_install_Windows_AIK.
push 0x2779
call fcn.00506990
add esp, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.00544641
lea edx, [esp + 0x28]
push str.www.bing.com_search_qWindowsAIK
push edx
jmp 0x4c8bd5
test byte [esp + 0x1140], bl
je 0x4c8c1e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.dismapi.dll
call fcn.005442c4
call fcn.004c8300
add esp, 4
cmp eax, edi
jne 0x4c8c1e
call fcn.004e0e00
mov esi, eax
cmp esi, edi
je 0x4c8b24
cmp word [esi], di
je 0x4c8b24
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Assessment_and_Deployment_KitDeployment_Tools_
call fcn.005442c4
push ecx
mov byte [esp + 0x1140], 0x17
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.005442c4
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x18
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.x86DISM
call fcn.005442c4
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x19
call fcn.00543fbd
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x113c], 0x1a
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.dismapi.dll
call fcn.005442c4
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x1d
call fcn.00543fbd
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004e16d0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x1e
call fcn.00544397
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.00544250
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x703308]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00543fbd
call fcn.004c8300
add esp, 4
cmp eax, edi
jne 0x4c8c1e
cmp dword [0x75ed24], edi
jne 0x4c8b4b
push str.dismapi.dll
push str.Error_loading__s.
push 0x20d0
call fcn.00506990
add esp, 8
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x4c8b68
push str.DISMAPI
push str.Error_initializing__s.
push 0x277b
call fcn.00506990
add esp, 8
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005412cd
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x68d870
call fcn.00544641
call fcn.004e4c60
test eax, eax
je 0x4c8baf
push str.Please_install_Windows_ADK.
push 0x277a
call fcn.00506990
add esp, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.00544641
lea edx, [esp + 0x28]
push str.www.bing.com_search_qWindowsADK
push edx
jmp 0x4c8bd5
push str.Please_install_Windows_AIK.
push 0x2779
call fcn.00506990
add esp, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.00544641
lea eax, [esp + 0x28]
push str.www.bing.com_search_qWindowsAIK
push eax
call fcn.00526ae2
mov ecx, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
push 0x7045ac
push ecx
call fcn.00527225
add esp, 8
cmp eax, edi
je 0x4c8c1e
cmp dword [0x75ed30], edi
jne 0x4c8c1e
mov edx, dword [esp + 0x1c]
push 0x11
push edx
call fcn.004dd630
add esp, 8
cmp eax, 1
jne 0x4c8c1e
lea eax, [esp + 0x28]
push eax
call fcn.004e12d0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1138], 1
call fcn.00544250
lea ecx, [esp + 0x24]
mov byte [esp + 0x1138], 0
call fcn.00544250
lea ecx, [esp + 0x14]
mov dword [esp + 0x1138], 0xffffffff
call fcn.00544250
mov ecx, dword [esp + 0x1130]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x112c
ret