Function at 0x47402c
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.00438772
mov dword [edi], esi
test esi, esi
jne 0x474069
call fcn.0044bc4b
jmp 0x474247
lea ebx, [edi + 8]
mov ecx, ebx
call dword [sym.imp.CBSHost.dll_CbsCreateTempDirectory2]
test eax, eax
jne 0x474247
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 0x47405f
push ecx
mov ecx, esp
lea esi, [edi + 0x84]
push dword [ebp + 8]
call fcn.0043b487
mov ecx, esi
call fcn.00439704
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.00434b6b
lea eax, [ebp - 0x14]
mov edx, str.WIM_IMAGE
push eax
mov ecx, esi
call fcn.00434e94
lea esi, [edi + 0xc8]
lea eax, [ebp - 0x14]
pop ecx
cmp esi, eax
je 0x47411c
mov ecx, dword [esi]
test ecx, ecx
je 0x474100
mov edx, dword [esi + 8]
sub edx, ecx
and edx, 0xfffffffc
call fcn.0043a508
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.00430403
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x474242
mov ecx, dword [ecx]
push 1
push 4
push str.NAME
call fcn.0043a80d
test eax, eax
je 0x474242
mov eax, dword [eax + 4]
test eax, eax
jne 0x47415b
mov eax, 0x491414
push 0x4a34e8
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x474242
push 1
push dword [edi]
call dword [sym.imp.WIMGAPI.DLL_WIMLoadImage]
lea ecx, [edi + 4]
mov esi, eax
call fcn.00438772
mov dword [edi + 4], esi
test esi, esi
je 0x47405f
push ebx
lea ecx, [edi + 0x50]
mov dword [edi + 0x60], esi
call fcn.0043b599
push str.Data.xml
mov edx, ebx
lea ecx, [ebp - 4]
call fcn.0043ab55
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 0x4741f4
lea edx, [edi + 0xc]
mov ecx, esi
call fcn.004329c8
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x474236
push 1
push 4
push str.Root
lea ecx, [edi + 0xc]
call fcn.0043a80d
mov dword [edi + 0x80], eax
test eax, eax
jne 0x4741fb
mov ebx, 0x8007000b
jmp 0x474236
push ecx
push 0xa
push str.MinSupport
mov ecx, eax
call fcn.0043a719
test eax, eax
je 0x474234
mov eax, dword [eax + 4]
test eax, eax
jne 0x47421a
mov eax, 0x491414
push 0xa
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
cmp eax, 4
jbe 0x474234
mov ebx, 0x80004001
jmp 0x474236
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.0043c924
mov eax, ebx
jmp 0x474247
mov eax, 0x8007000b
pop edi
pop esi
pop ebx
leave
ret 4