Function at 0x475067
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 0x20000000
push 3
push 0x80000000
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.WIMGAPI.DLL_WIMCreateFile]
mov ecx, edi
mov esi, eax
call fcn.004397f4
mov dword [edi], esi
test esi, esi
jne 0x4750a4
call fcn.0044cc8a
jmp 0x475282
lea ebx, [edi + 8]
mov ecx, ebx
call dword [sym.imp.CBSHost.dll_CbsCreateTempDirectory2]
test eax, eax
jne 0x475282
push dword [ebx]
push dword [edi]
call dword [sym.imp.WIMGAPI.DLL_WIMSetTemporaryPath]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [edi]
call dword [sym.imp.WIMGAPI.DLL_WIMGetImageInformation]
test eax, eax
je 0x47509a
push ecx
mov ecx, esp
lea esi, [edi + 0x84]
push dword [ebp + 8]
call fcn.0043c2b8
mov ecx, esi
call fcn.0043a77a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.00435aa2
lea eax, [ebp - 0x14]
mov edx, str.WIM_IMAGE
push eax
mov ecx, esi
call fcn.00435de6
lea esi, [edi + 0xc8]
lea eax, [ebp - 0x14]
pop ecx
cmp esi, eax
je 0x475157
mov ecx, dword [esi]
test ecx, ecx
je 0x47513b
mov edx, dword [esi + 8]
sub edx, ecx
and edx, 0xfffffffc
call fcn.0043b4cf
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x14]
call fcn.004303a3
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x47527d
mov ecx, dword [ecx]
push 1
push 4
push str.NAME
call fcn.0043b7cc
test eax, eax
je 0x47527d
mov eax, dword [eax + 4]
test eax, eax
jne 0x475196
mov eax, 0x4934ec
push 0x4a3c48
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x47527d
push 1
push dword [edi]
call dword [sym.imp.WIMGAPI.DLL_WIMLoadImage]
lea ecx, [edi + 4]
mov esi, eax
call fcn.004397f4
mov dword [edi + 4], esi
test esi, esi
je 0x47509a
push ebx
lea ecx, [edi + 0x50]
mov dword [edi + 0x60], esi
call fcn.0043c5cb
push str.Data.xml
mov edx, ebx
lea ecx, [ebp - 4]
call fcn.0043baed
mov esi, dword [ebp - 4]
pop ecx
push 0
push esi
push str.Data.xml
push dword [edi + 4]
call dword [sym.imp.WIMGAPI.DLL_WIMExtractImagePath]
test eax, eax
je 0x47522f
lea edx, [edi + 0xc]
mov ecx, esi
call fcn.004335f7
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x475271
push 1
push 4
push str.Root
lea ecx, [edi + 0xc]
call fcn.0043b7cc
mov dword [edi + 0x80], eax
test eax, eax
jne 0x475236
mov ebx, 0x8007000b
jmp 0x475271
push ecx
push 0xa
push str.MinSupport
mov ecx, eax
call fcn.0043b6e0
test eax, eax
je 0x47526f
mov eax, dword [eax + 4]
test eax, eax
jne 0x475255
mov eax, 0x4934ec
push 0xa
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
cmp eax, 4
jbe 0x47526f
mov ebx, 0x80004001
jmp 0x475271
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0043d912
mov eax, ebx
jmp 0x475282
mov eax, 0x8007000b
pop edi
pop esi
pop ebx
leave
ret 4