Function at 0x4046f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [edx + 8]
push esi
lea esi, [edx + 0x10]
push ebx
mov ebx, eax
sub esp, 0x4e0
mov dword [edx + 0xc], edi
mov dword [edx + 8], edi
mov dword [ebp - 0x4b0], edi
lea edi, [edx + 0x18]
mov dword [edx + 0x14], esi
mov dword [edx + 0x10], esi
mov dword [edx + 0x1c], edi
mov dword [edx + 0x18], edi
mov dword [ebp - 0x4b8], edx
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4bc], edi
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
test byte [section..data], 8
jne 0x404b50
mov eax, dword [ebp - 0x4b8]
call fcn.00401050
mov dword [ebp - 0x4b4], 0
mov edi, eax
test eax, eax
je 0x404852
mov edx, eax
mov eax, ebx
call fcn.004012b0
mov dword [ebp - 0x4b4], eax
test eax, eax
jne 0x404860
test byte [section..data], 2
jne 0x404d28
mov dword [ebp - 0x4b4], 0
mov eax, dword [ebp - 0x4b8]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [eax + 8]
mov edi, dword [ebx]
cmp dword [ebp - 0x4b0], ebx
je 0x4047e3
lea esi, [esi]
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [ebx + 8]
call fcn.00401f70
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov dword [esp], ebx
mov ebx, edi
call esi
mov edi, dword [edi]
cmp dword [ebp - 0x4b0], ebx
jne 0x4047b8
mov eax, dword [ebp - 0x4b8]
mov esi, dword [ebp - 0x4c0]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
cmp dword [ebp - 0x4c0], eax
je 0x40481a
lea esi, [esi]
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [esp], eax
call fcn.00408490
mov eax, ebx
mov ebx, dword [ebx]
cmp esi, eax
jne 0x404800
mov eax, dword [ebp - 0x4b8]
mov esi, dword [ebp - 0x4bc]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax]
cmp dword [ebp - 0x4bc], eax
je 0x404852
lea esi, [esi]
nop
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [esp], eax
call fcn.00408440
mov eax, ebx
mov ebx, dword [ebx]
cmp esi, eax
jne 0x404838
mov eax, dword [ebp - 0x4b4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, str..cab
mov eax, edi
call fcn.00401e40
mov ebx, eax
test eax, eax
je 0x404791
lea eax, [ebp - 0x4ac]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x4d0], eax
call eax
mov esi, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [ebp - 0x4b4], eax
mov dword [esp], ebx
call esi
cmp dword [ebp - 0x4b4], 0xffffffff
je 0x40498e
mov eax, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4cc], edi
mov edi, eax
lea esi, [esi]
test byte [ebp - 0x4ac], 0x10
jne 0x404950
lea ebx, [ebp - 0x480]
mov dword [esp + 4], str.WSUSSCAN.cab
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
je 0x404950
mov eax, dword [ebp - 0x4cc]
mov edx, ebx
call fcn.00401e40
mov esi, eax
test eax, eax
je 0x404950
test byte [section..data], 8
jne 0x4051d0
mov eax, dword [ebp - 0x4b8]
call fcn.00401050
mov ebx, eax
test eax, eax
je 0x4050c0
mov edx, eax
mov eax, esi
call fcn.004012b0
test eax, eax
jne 0x404ea0
test byte [section..data], 2
jne 0x405f11
mov dword [esp], esi
mov eax, dword [ebp - 0x4c8]
call eax
lea esi, [esi]
lea eax, [ebp - 0x4ac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x4048c8
mov eax, dword [ebp - 0x4b4]
mov edi, dword [ebp - 0x4cc]
mov esi, dword [ebp - 0x4c8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov edx, str..xml
mov eax, edi
call fcn.00401e40
mov ebx, eax
test eax, eax
je 0x404791
lea eax, [ebp - 0x4ac]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4d0]
call eax
sub esp, 8
mov dword [ebp - 0x4b4], eax
mov dword [esp], ebx
call esi
cmp dword [ebp - 0x4b4], 0xffffffff
je 0x404a60
mov eax, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [ebp - 0x4c8], esi
mov esi, eax
lea esi, [esi]
test byte [ebp - 0x4ac], 0x10
jne 0x404a32
lea edx, [ebp - 0x480]
mov eax, edi
call fcn.00401e40
mov ebx, eax
test eax, eax
je 0x404a32
mov eax, dword [ebp - 0x4bc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408750
test eax, eax
jne 0x404a27
test byte [section..data], 2
jne 0x405572
mov dword [esp], ebx
mov eax, dword [ebp - 0x4c8]
call eax
lea eax, [ebp - 0x4ac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
jne 0x4049e8
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
test byte [section..data], 8
jne 0x4052c4
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0x4bc]
cmp ecx, dword [eax + 0x18]
je 0x405980
mov eax, dword [ebp - 0x4b8]
mov edx, dword [ebp - 0x4c0]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0x4c0], eax
je 0x404aad
lea esi, [esi]
mov dword [eax + 8], 0
mov eax, dword [eax]
cmp edx, eax
jne 0x404aa0
mov eax, dword [ebp - 0x4b8]
mov edx, 1
call fcn.004045f0
mov dword [ebp - 0x4b4], eax
test eax, eax
je 0x4056c9
mov eax, dword [ebp - 0x4b8]
mov edx, dword [ebp - 0x4c0]
mov eax, dword [eax + 0x10]
cmp dword [ebp - 0x4c0], eax
je 0x404af5
lea esi, [esi]
mov dword [eax + 8], 0
mov eax, dword [eax]
cmp edx, eax
jne 0x404ae8
mov eax, dword [ebp - 0x4b8]
xor edx, edx
call fcn.004045f0
mov dword [ebp - 0x4b4], eax
test eax, eax
je 0x40594a
mov dword [ebp - 0x4b4], 1
test byte [section..data], 8
je 0x40479b
mov dword [esp + 0xc], str.Installation_finished_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
jmp 0x40479b
test ebx, ebx
je 0x4052ba
mov eax, ebx
shr eax, 0x10
je 0x404c40
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x40c015
test ecx, ecx
jne 0x404c53
movzx eax, word [ebx]
test ax, ax
je 0x405551
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404b98
mov ecx, 0x224c
lea edi, [ebp - 0x13a]
mov dword [ebp - 0x4c4], ebx
mov esi, ebx
mov word [ebp - 0x25c], cx
lea ecx, [ebp - 0x25a]
mov dword [ebp - 0x4b4], edi
jmp 0x404c0c
cmp ax, 9
je 0x404c98
cmp ax, 0xa
jne 0x404cb6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, dword [ebp - 0x4b4]
ja 0x404e68
test edx, edx
jle 0x404e68
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x404c80
jbe 0x404bd0
cmp ax, 0x22
je 0x404d10
cmp ax, 0x5c
jne 0x404ca9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x404bf0
movzx eax, bx
mov dword [esp], 0x40c008
mov dword [esp + 4], eax
call fcn.004016e0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Processing_msu_file__s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
jmp 0x40474e
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404bf0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404bf0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4051c0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x404bf0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x404bf0
test ebx, ebx
je 0x406084
mov eax, ebx
shr eax, 0x10
je 0x405899
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x40c015
test ecx, ecx
jne 0x404e37
movzx eax, word [ebx]
test ax, ax
je 0x4060e7
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x404d70
mov ecx, 0x224c
mov dword [ebp - 0x4c4], ebx
lea esi, [ebp - 0x13a]
mov word [ebp - 0x25c], cx
lea ecx, [ebp - 0x25a]
jmp 0x404dd6
cmp ax, 9
je 0x4054b8
cmp ax, 0xa
jne 0x4054e7
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
cmp ecx, esi
ja 0x404e0b
test edx, edx
jle 0x404e0b
mov eax, dword [ebp - 0x4c4]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x4c4], 2
cmp ax, 0xd
je 0x4054c9
jbe 0x404da0
cmp ax, 0x22
je 0x405540
cmp ax, 0x5c
jne 0x4054da
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x404dc0
mov byte [ecx], 0x22
test edi, edi
jle 0x406100
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_extract__s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
jmp 0x40479b
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x4c4]
test edi, edi
jle 0x40556a
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
jmp 0x404c53
mov edx, str._manifest_.cix.xml
mov eax, ebx
call fcn.00401e40
test eax, eax
je 0x4050c0
mov dword [esp], eax
mov dword [ebp - 0x4c4], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x4c4]
sub esp, 4
cmp eax, 0xffffffff
je 0x404f37
test byte [section..data], 1
je 0x404f37
mov dword [esp + 0xc], str.Cabinet_uses_proprietary_msdelta_file_compression_which_is_not__yet__supported_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x40a000
mov dword [esp], 0
call fcn.00401af0
test byte [section..data], 1
mov edx, dword [ebp - 0x4c4]
je 0x404f37
mov dword [esp + 0xc], str.Installation_of_msu_file_will_most_likely_fail_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x40a000
mov dword [esp], 0
call fcn.00401af0
mov edx, dword [ebp - 0x4c4]
mov dword [esp], edx
mov eax, dword [ebp - 0x4c8]
call eax
mov edx, 0x40c06e
mov eax, ebx
call fcn.00401e40
test eax, eax
je 0x4050c0
lea ecx, [ebp - 0x25c]
mov edx, dword [ebp - 0x4d0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c4], eax
call edx
mov edx, dword [ebp - 0x4c4]
mov ecx, dword [ebp - 0x4c8]
sub esp, 8
mov dword [ebp - 0x4d4], eax
mov dword [esp], edx
call ecx
mov eax, dword [ebp - 0x4d4]
cmp eax, 0xffffffff
je 0x40493f
mov dword [ebp - 0x4d8], esi
mov esi, eax
lea esi, [esi]
test byte [ebp - 0x25c], 0x10
jne 0x40502c
mov edx, str..manifest
lea eax, [ebp - 0x230]
call fcn.00401430
test eax, eax
jne 0x404fd9
mov edx, str..mum
lea eax, [ebp - 0x230]
call fcn.00401430
test eax, eax
je 0x40502c
lea edx, [ebp - 0x230]
mov eax, ebx
call fcn.00401e40
test eax, eax
je 0x40502c
mov dword [esp], eax
mov dword [ebp - 0x4c4], eax
call fcn.004085c0
mov edx, dword [ebp - 0x4c4]
test eax, eax
je 0x405021
mov ecx, dword [ebp - 0x4c0]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x4b8]
mov ecx, dword [ecx + 0x14]
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x14], eax
mov dword [esp], edx
mov eax, dword [ebp - 0x4c8]
call eax
lea eax, [ebp - 0x25c]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x404fa8
mov eax, dword [ebp - 0x4d4]
mov esi, dword [ebp - 0x4d8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x40493f
mov byte [ebx], 0x22
mov esi, dword [ebp - 0x4d4]
test eax, eax
jle 0x4062d7
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Failed_to_extract__s_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
nop
test byte [section..data], 2
je 0x40493f
mov eax, esi
shr eax, 0x10
je 0x4061f2
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x4057ce
cmp word [esi], 0
je 0x40629d
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x405108
mov eax, 0x224c
mov dword [ebp - 0x4d4], esi
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
mov dword [ebp - 0x4c4], esi
jmp 0x40517b
cmp ax, 9
je 0x406073
cmp ax, 0xa
jne 0x406007
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x40579a
lea esi, [ebp - 0x13a]
cmp ecx, esi
ja 0x40579a
mov edx, eax
add dword [ebp - 0x4c4], 2
mov eax, dword [ebp - 0x4c4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x40608e
jbe 0x405138
cmp ax, 0x22
je 0x406058
cmp ax, 0x5c
jne 0x405ffa
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x405160
mov byte [ecx], al
add ecx, 1
jmp 0x404bf0
shr eax, 0x10
je 0x40540a
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x40541f
cmp word [esi], 0
je 0x4061bd
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x405208
mov ebx, 0x224c
mov dword [ebp - 0x4d4], esi
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], bx
mov dword [ebp - 0x4c4], esi
jmp 0x40527b
cmp ax, 9
je 0x405778
cmp ax, 0xa
jne 0x40570c
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea esi, [ebp - 0x13a]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x4059c0
test edx, edx
jle 0x4059c0
mov edx, eax
add dword [ebp - 0x4c4], 2
mov eax, dword [ebp - 0x4c4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x405789
jbe 0x405238
cmp ax, 0x22
je 0x405760
cmp ax, 0x5c
jne 0x4056ff
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x405260
mov eax, 0x40c00e
jmp 0x404c53
mov dword [esp], section..data
call fcn.00409140
test al, 8
je 0x404a6d
movzx eax, byte [section..data]
test al, 8
jne 0x4059f9
mov ecx, dword [ebp - 0x4b8]
mov edi, dword [ecx + 0x18]
cmp dword [ebp - 0x4bc], edi
jne 0x40530e
jmp 0x405a66
mov edi, dword [edi]
cmp dword [ebp - 0x4bc], edi
je 0x405a3e
mov edx, eax
and edx, 8
je 0x405300
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4061de
mov eax, ebx
shr eax, 0x10
je 0x40609f
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x40547a
cmp word [ebx], 0
je 0x406237
lea esi, [esi]
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x405360
mov esi, 0x224c
mov dword [ebp - 0x4b4], ebx
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], si
jmp 0x4053cb
cmp ax, 9
je 0x405888
cmp ax, 0xa
jne 0x405819
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x40544c
lea esi, [ebp - 0x13a]
cmp ecx, esi
ja 0x40544c
mov edx, eax
add dword [ebp - 0x4b4], 2
mov eax, dword [ebp - 0x4b4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4057fb
jbe 0x405390
cmp ax, 0x22
je 0x405870
cmp ax, 0x5c
jne 0x40580c
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4053b0
movzx eax, si
mov dword [esp], 0x40c008
mov dword [esp + 4], eax
call fcn.004016e0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Processing_cab_file__s_n
mov dword [esp + 8], str.load_assemblies_from_cab
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
jmp 0x40490c
mov byte [ecx], 0x22
test eax, eax
jle 0x406250
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.___s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
movzx eax, byte [section..data]
mov edx, eax
and edx, 8
jmp 0x405300
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404dc0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x404dc0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4059b6
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x404dc0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x404dc0
mov eax, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
lea eax, [ecx + 1]
jmp 0x404e89
mov eax, ebx
shr eax, 0x10
je 0x406108
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x40569c
cmp word [ebx], 0
je 0x406258
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x4055b0
mov ecx, 0x224c
mov dword [ebp - 0x4cc], edi
mov word [ebp - 0x25c], cx
lea ecx, [ebp - 0x25a]
mov dword [ebp - 0x4d0], ebx
mov dword [ebp - 0x4c4], ebx
jmp 0x405623
cmp ax, 9
je 0x405928
cmp ax, 0xa
jne 0x4058be
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x405662
lea edi, [ebp - 0x13a]
cmp ecx, edi
ja 0x405662
mov edx, eax
add dword [ebp - 0x4c4], 2
mov eax, dword [ebp - 0x4c4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x405939
jbe 0x4055e8
cmp ax, 0x22
je 0x405910
cmp ax, 0x5c
jne 0x4058b1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x405610
mov edi, dword [ebp - 0x4cc]
mov ebx, dword [ebp - 0x4d0]
mov byte [ecx], 0x22
test eax, eax
jle 0x406271
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Failed_to_load_all_updates_from__s__ignoring_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
jmp 0x404a27
test byte [section..data], 2
je 0x404791
mov dword [esp + 0xc], str.Dry_run_failed__aborting_installation_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
jmp 0x40479b
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x406069
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405260
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x405260
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405260
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405260
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x4d4]
test eax, eax
jle 0x4062b6
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Failed_to_load_all_manifests_from__s__ignoring_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
jmp 0x40493f
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4053b0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4060d3
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4053b0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x4053b0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4053b0
movzx ebx, bx
mov dword [esp], 0x40c008
mov dword [esp + 4], ebx
call fcn.004016e0
jmp 0x404e37
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4061b3
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405610
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x405610
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405610
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405610
test byte [section..data], 2
je 0x404791
mov dword [esp + 0xc], str.Installation_failed_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
jmp 0x40479b
test byte [section..data], 2
je 0x404791
mov dword [esp + 0xc], str.No_updates_found__probably_incompatible_MSU_file_format__n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call fcn.00401af0
jmp 0x404791
mov byte [ecx], al
add ecx, 1
jmp 0x404dc0
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x4d4]
test eax, eax
jle 0x4061d6
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
jmp 0x40541f
mov dword [esp + 0xc], str.List_of_updates:_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
movzx eax, byte [section..data]
mov ecx, dword [ebp - 0x4b8]
mov edx, eax
mov edi, dword [ecx + 0x18]
and edx, 8
cmp dword [ebp - 0x4bc], edi
jne 0x40530e
test dl, dl
je 0x405a66
mov dword [esp + 0xc], str.List_of_manifests__with_dependencies_:_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
mov eax, dword [ebp - 0x4b8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c0], eax
je 0x404a6d
lea esi, [esi]
test byte [section..data], 8
jne 0x405d48
mov eax, dword [ebp - 0x4c8]
mov esi, dword [eax + 0x28]
add eax, 0x28
mov dword [ebp - 0x4c4], eax
cmp eax, esi
jne 0x405abe
jmp 0x405c1c
mov esi, dword [esi]
cmp esi, dword [ebp - 0x4c4]
je 0x405c1c
test byte [section..data], 8
je 0x405ab0
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x405d18
mov eax, ebx
shr eax, 0x10
je 0x405ce8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x405be6
cmp word [ebx], 0
je 0x405d22
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x405b10
mov eax, 0x224c
mov dword [ebp - 0x4b4], ebx
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
jmp 0x405b73
cmp ax, 9
je 0x405c58
cmp ax, 0xa
jne 0x405c76
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x13a]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x405bb8
test edx, edx
jle 0x405bb8
mov edx, eax
add dword [ebp - 0x4b4], 2
mov eax, dword [ebp - 0x4b4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x405c40
jbe 0x405b40
cmp ax, 0x22
je 0x405cd0
cmp ax, 0x5c
jne 0x405c69
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405b60
mov byte [ecx], 0x22
test eax, eax
jle 0x405d3b
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._______s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
mov esi, dword [esi]
cmp esi, dword [ebp - 0x4c4]
jne 0x405abe
mov eax, dword [ebp - 0x4c8]
mov eax, dword [eax]
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c0], eax
jne 0x405a88
jmp 0x404a6d
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405b60
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405b60
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x405d08
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405b60
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405b60
movzx ebx, bx
mov dword [esp], 0x40c008
mov dword [esp + 4], ebx
call fcn.004016e0
mov edx, eax
jmp 0x405be6
mov byte [ecx], al
add ecx, 1
jmp 0x405b60
mov edx, 0x40c00e
jmp 0x405be6
mov eax, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
lea eax, [ecx + 1]
jmp 0x405bd3
mov eax, dword [ebp - 0x4c8]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x4061e8
mov eax, ebx
shr eax, 0x10
je 0x4060b9
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x405e51
cmp word [ebx], 0
je 0x406216
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x405d90
mov eax, 0x224c
lea ecx, [ebp - 0x25a]
mov edi, ebx
mov word [ebp - 0x25c], ax
jmp 0x405df3
cmp ax, 9
je 0x405e90
cmp ax, 0xa
jne 0x405eae
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x405e23
lea esi, [ebp - 0x13a]
cmp ecx, esi
ja 0x405e23
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x405e7e
jbe 0x405db8
cmp ax, 0x22
je 0x405f00
cmp ax, 0x5c
jne 0x405ea1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x405de0
mov byte [ecx], 0x22
test eax, eax
jle 0x40622f
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x25c]
mov dword [esp], eax
call fcn.004090a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.___s_n
mov dword [esp + 8], str.install_msu
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call fcn.00401af0
jmp 0x405a95
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405de0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405de0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x4060dd
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405de0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x405de0
mov eax, esi
shr eax, 0x10
je 0x406279
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x40c015
sub esp, 8
test eax, eax
jne 0x405097
cmp word [esi], 0
je 0x4062be
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x405f50
mov eax, 0x224c
mov dword [ebp - 0x4d4], esi
lea ebx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
mov dword [ebp - 0x4c4], esi
jmp 0x405fbb
cmp ax, 9
je 0x4061a2
cmp ax, 0xa
jne 0x406140
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea esi, [esi]
lea ecx, [ebp - 0x13a]
lea eax, [edx - 1]
cmp ebx, ecx
ja 0x405063
test edx, edx
jle 0x405063
mov edx, eax
add dword [ebp - 0x4c4], 2
mov eax, dword [ebp - 0x4c4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x406122
jbe 0x405f7d
cmp ax, 0x22
je 0x406191
cmp ax, 0x5c
jne 0x406133
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
jmp 0x405fa0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x40620c
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x405160
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x405160
mov byte [ecx], al
add ecx, 1
jmp 0x405260
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405160
mov eax, 0x40c00e
jmp 0x404e37
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x405160
movzx ebx, bx
mov dword [esp], 0x40c008
mov dword [esp + 4], ebx
call fcn.004016e0
mov edx, eax
jmp 0x40547a
movzx ebx, bx
mov dword [esp], 0x40c008
mov dword [esp + 4], ebx
call fcn.004016e0
mov edx, eax
jmp 0x405e51
mov byte [ecx], al
add ecx, 1
jmp 0x4053b0
mov byte [ecx], al
add ecx, 1
jmp 0x405de0
mov ebx, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], bx
lea eax, [ecx + 1]
jmp 0x404e26
movzx eax, bx
mov dword [esp], 0x40c008
mov dword [esp + 4], eax
call fcn.004016e0
mov edx, eax
jmp 0x40569c
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x405fa0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x406293
mov esi, eax
mov byte [ebx], 0x5c
add ebx, 5
shr si, 0xc
movzx esi, si
movzx ecx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ebx - 4], cl
movzx ecx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefcabinet_copy_file]
and esi, 0xf
mov byte [ebx - 3], cl
movzx ecx, byte [esi + str.0123456789abcdefcabinet_copy_file]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
jmp 0x405fa0
mov esi, 0x225c
add ebx, 2
mov word [ebx - 2], si
jmp 0x405fa0
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x405fa0
mov byte [ecx], al
add ecx, 1
jmp 0x405610
mov eax, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
lea eax, [ecx + 1]
jmp 0x4059e1
mov edx, 0x40c00e
jmp 0x40547a
mov edx, 0x40c00e
jmp 0x405e51
movzx eax, si
mov dword [esp], 0x40c008
mov dword [esp + 4], eax
call fcn.004016e0
mov edx, eax
jmp 0x4057ce
mov byte [ecx], al
add ecx, 1
jmp 0x405160
mov edi, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], di
lea eax, [ecx + 1]
jmp 0x405e3e
mov ebx, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], bx
lea eax, [ecx + 1]
jmp 0x405467
mov edx, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], dx
lea eax, [ecx + 1]
jmp 0x405689
movzx eax, si
mov dword [esp], 0x40c008
mov dword [esp + 4], eax
call fcn.004016e0
mov edx, eax
jmp 0x405097
mov byte [ebx], al
add ebx, 1
jmp 0x405fa0
mov eax, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ecx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
lea eax, [ecx + 1]
jmp 0x4057bb
mov eax, 0x224c
mov byte [ebp - 0x25a], 0x22
lea ebx, [ebp - 0x25a]
mov word [ebp - 0x25c], ax
lea eax, [ebx + 1]
jmp 0x405084