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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x581033
push eax
mov eax, 0x1120
mov dword fs:[0], esp
call fcn.0053f480
mov eax, dword [0x733f14]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
push 0x73768c
lea ecx, [esp + 0x28]
mov dword [esp + 0x113c], edi
call fcn.0055ae5f
push 0x73768c
lea ecx, [esp + 0x20]
mov byte [esp + 0x113c], 1
call fcn.0055ae5f
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.0053f406
lea ecx, [esp + 0x934]
push str.__x86_
push ecx
call fcn.0053fbda
add esp, 0x10
cmp eax, edi
je 0x4dfab4
mov word [eax], di
jmp 0x4dfabc
mov word [esp + 0x92c], di
mov al, byte [esp + 0x1140]
mov word [esp + 0x28], di
test al, 1
je 0x4dff06
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.wimgapi.dll
call fcn.0055ae5f
call fcn.004df5d0
add esp, 4
cmp eax, edi
jne 0x4dff06
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Windows_Imagingwimgapi.dll
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x130]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x1144], 3
call fcn.0055ae5f
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 4
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0055ab58
call fcn.004df5d0
add esp, 4
cmp eax, edi
jne 0x4dff06
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows_AIKTools_
call fcn.0055ae5f
push ecx
lea eax, [esp + 0x130]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x1144], 5
call fcn.0055ae5f
lea ecx, [esp + 0x18]
mov byte [esp + 0x1140], bl
push ecx
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 6
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x714b44
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 7
call fcn.0055ab58
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 8
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.wimgapi.dll
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0xb
call fcn.0055ab58
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0xc
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x18]
push edx
call fcn.0055ab58
call fcn.004df5d0
add esp, 4
cmp eax, edi
jne 0x4dff06
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows_Imagingwimgapi.dll
call fcn.0055ae5f
push ecx
lea eax, [esp + 0x934]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x1144], 0xd
call fcn.0055ae5f
lea ecx, [esp + 0x18]
mov byte [esp + 0x1140], bl
push ecx
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0xe
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0055ab58
call fcn.004df5d0
add esp, 4
cmp eax, edi
jne 0x4dff06
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows_AIKTools_
call fcn.0055ae5f
push ecx
lea eax, [esp + 0x934]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x1144], 0xf
call fcn.0055ae5f
lea ecx, [esp + 0x18]
mov byte [esp + 0x1140], bl
push ecx
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x10
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x714b44
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x11
call fcn.0055ab58
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x12
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.wimgapi.dll
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x15
call fcn.0055ab58
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x16
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x18]
push edx
call fcn.0055ab58
call fcn.004df5d0
add esp, 4
cmp eax, edi
jne 0x4dff06
cmp dword [0x7c6ed0], edi
jne 0x4dfea8
push str.wimgapi.dll
push str.Error_loading__s.
push 0x1e1
call fcn.0051faa0
add esp, 8
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x4dfec5
push str.WIMGAPI
push str.Error_initializing__s.
push 0x4ee
call fcn.0051faa0
add esp, 8
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00557b5d
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x672098
call fcn.0055b1dc
push str.Please_install_Windows_AIK.
push 0x4ec
call fcn.0051faa0
add esp, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.0055b1dc
lea edx, [esp + 0x28]
push str.www.bing.com_search_qWindowsAIK
push edx
jmp 0x4e0145
test byte [esp + 0x1140], bl
je 0x4e018e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.dismapi.dll
call fcn.0055ae5f
call fcn.004df870
add esp, 4
cmp eax, edi
jne 0x4e018e
call fcn.004f71b0
mov esi, eax
cmp esi, edi
je 0x4e0094
cmp word [esi], di
je 0x4e0094
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Assessment_and_Deployment_KitDeployment_Tools_
call fcn.0055ae5f
push ecx
mov byte [esp + 0x1140], 0x17
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.0055ae5f
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x18
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.x86DISM
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x19
call fcn.0055ab58
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x113c], 0x1a
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.dismapi.dll
call fcn.0055ae5f
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1144], 0x1d
call fcn.0055ab58
lea eax, [esp + 0x18]
mov byte [esp + 0x1140], bl
push eax
call fcn.004f7b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x113c], 0x1e
call fcn.0055af32
lea ecx, [esp + 0x10]
mov byte [esp + 0x1138], bl
call fcn.0055adeb
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x73644c]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0055ab58
call fcn.004df870
add esp, 4
cmp eax, edi
jne 0x4e018e
cmp dword [0x7c6ed4], edi
jne 0x4e00bb
push str.dismapi.dll
push str.Error_loading__s.
push 0x1e1
call fcn.0051faa0
add esp, 8
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x4e00d8
push str.DISMAPI
push str.Error_initializing__s.
push 0x4ee
call fcn.0051faa0
add esp, 8
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00557b5d
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x672098
call fcn.0055b1dc
call fcn.004fb6d0
test eax, eax
je 0x4e011f
push str.Please_install_Windows_ADK.
push 0x4ed
call fcn.0051faa0
add esp, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.0055b1dc
lea edx, [esp + 0x28]
push str.www.bing.com_search_qWindowsADK
push edx
jmp 0x4e0145
push str.Please_install_Windows_AIK.
push 0x4ec
call fcn.0051faa0
add esp, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.0055b1dc
lea eax, [esp + 0x28]
push str.www.bing.com_search_qWindowsAIK
push eax
call fcn.0053f406
mov ecx, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
push 0x73768c
push ecx
call fcn.0053fb55
add esp, 8
cmp eax, edi
je 0x4e018e
cmp dword [0x7c6ee0], edi
jne 0x4e018e
mov edx, dword [esp + 0x1c]
push 0x11
push edx
call fcn.004f3450
add esp, 8
cmp eax, 1
jne 0x4e018e
lea eax, [esp + 0x28]
push eax
call fcn.004f7690
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1138], 1
call fcn.0055adeb
lea ecx, [esp + 0x24]
mov byte [esp + 0x1138], 0
call fcn.0055adeb
lea ecx, [esp + 0x14]
mov dword [esp + 0x1138], 0xffffffff
call fcn.0055adeb
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