Function at 0x42a783
Capabilities:
Move file

Disassembly:
push 0x3a4
mov eax, 0x480ab1
call fcn.004569c5
mov esi, edx
mov dword [ebp - 0x30c], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x318], eax
xor ebx, ebx
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x308], ebx
push eax
push str.ApplyXmlUpdate
mov dword [ebp - 0x2e8], ebx
call fcn.0041e6cc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2e4]
call fcn.00451190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2fc]
call fcn.00451160
lea ecx, [ebp - 0x2f0]
call fcn.0040aaed
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x314]
call fcn.0040aaed
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x304]
call fcn.0040aaed
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x398]
call fcn.00433ad7
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x300]
call fcn.00451160
xor eax, eax
or edi, 0xffffffff
mov byte [ebp - 0x2f1], al
mov bh, bl
test esi, esi
je 0x42afd4
cmp word [esi], ax
je 0x42afd4
push esi
lea ecx, [ebp - 0x2ec]
call fcn.0040956c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2ec]
call fcn.0041fc81
mov bl, al
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ec]
add ecx, 0xfffffff0
call fcn.0040aacb
test bl, bl
jne 0x42a8c6
xor eax, eax
xor ecx, ecx
push ecx
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x42a8b7
cmp word [ebp - 0x21c], 0
je 0x42a8b7
lea eax, [ebp - 0x21c]
push eax
jmp 0x42a8c7
mov dword [ebp - 0x2e8], 0x57
jmp 0x42afe7
push esi
lea ecx, [ebp - 0x2f0]
call fcn.0040a676
push 0x5c
push 0x2f
lea ecx, [ebp - 0x2f0]
call fcn.00409476
xor eax, eax
lea ecx, [ebp - 0x2e4]
push eax
push 0x74
push esi
lea eax, [ebp - 0x324]
push eax
call fcn.004521b0
lea ecx, [ebp - 0x324]
call fcn.004512f0
test al, al
jne 0x42a93c
push dword [ebp - 0x320]
lea ecx, [ebp - 0x324]
push dword [ebp - 0x324]
call fcn.004519d0
push eax
push str.XML_is_not_valid:___hs__error:_u__file_offset:_u
call fcn.0041e1d8
add esp, 0x10
mov dword [ebp - 0x2e8], 0xd
jmp 0x42afe7
push 0x5c
push dword [ebp - 0x2f0]
call fcn.00456ff3
pop ecx
pop ecx
test eax, eax
jne 0x42a954
or eax, 0xffffffff
jmp 0x42a95c
sub eax, dword [ebp - 0x2f0]
sar eax, 1
lea esi, [eax + 1]
push esi
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00416c10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x314]
push eax
call fcn.0040951e
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
push esi
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040bd08
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2f0]
push eax
call fcn.0040951e
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
lea ecx, [ebp - 0x2f0]
call fcn.0040944e
push str.aswmicroupdate
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004517b0
lea ecx, [ebp - 0x2fc]
mov eax, dword [eax]
mov dword [ebp - 0x2fc], eax
call fcn.004512f0
test al, al
jne 0x42a92d
xor eax, eax
lea ecx, [ebp - 0x2fc]
mov esi, eax
lea eax, [ebp - 0x2ec]
push str.version
push eax
call fcn.00451700
lea ecx, [ebp - 0x2ec]
call fcn.00451320
test eax, eax
je 0x42aa40
xor eax, eax
lea ecx, [ebp - 0x2ec]
push eax
call fcn.004516a0
mov esi, eax
cmp esi, edi
jle 0x42aa57
cmp esi, 0x1b
jg 0x42aa57
mov eax, dword [ebp - 0x2fc]
mov edi, esi
mov dword [ebp - 0x300], eax
push str.aswmicroupdate
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.004523b0
lea ecx, [ebp - 0x2fc]
mov eax, dword [eax]
mov dword [ebp - 0x2fc], eax
call fcn.00451320
test eax, eax
jne 0x42aa06
lea ecx, [ebp - 0x300]
call fcn.004512f0
test al, al
jne 0x42a92d
push str.flags
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x300]
call fcn.00451700
lea ecx, [ebp - 0x310]
call fcn.00451320
test eax, eax
je 0x42ab95
lea ecx, [ebp - 0x310]
call fcn.00454f60
mov bl, byte [ebp - 0x2f1]
mov dword [ebp - 0x2ec], eax
lea ecx, [ebp - 0x2ec]
call fcn.0041efe3
mov esi, dword [ebp - 0x2ec]
push 8
push str.noreboot
push esi
call fcn.0046c919
add esp, 0xc
test eax, eax
jne 0x42ab09
add esi, 0x10
mov dword [ebp - 0x2ec], esi
jmp 0x42ab2e
push 0xb
push str.nobizreboot
push esi
call fcn.0046c919
add esp, 0xc
test eax, eax
jne 0x42ab32
add esi, 0x16
mov dword [ebp - 0x2ec], esi
cmp byte [0x4c25dc], al
je 0x42aad9
mov bh, 1
jmp 0x42aad9
push 6
push str.reboot
push esi
call fcn.0046c919
add esp, 0xc
test eax, eax
jne 0x42ab65
add esi, 0xc
mov cl, 1
mov dword [ebp - 0x2ec], esi
call fcn.00430986
test al, al
jne 0x42aad9
mov bl, cl
jmp 0x42aad9
lea ecx, [ebp - 0x2ec]
call fcn.0041efe3
mov eax, dword [ebp - 0x2ec]
xor ecx, ecx
cmp word [eax], cx
je 0x42ab9b
push str.aswmicroupdate
push eax
push str.Invalid_flag__s_in_node__s
call fcn.0041e1d8
add esp, 0xc
jmp 0x42a92d
mov bl, byte [ebp - 0x2f1]
mov edi, dword [0x4c2618]
mov eax, edi
inc edi
mov dword [0x4c2618], edi
test eax, eax
je 0x42abff
call fcn.004213ca
mov esi, dword [0x4c2554]
mov ecx, 0x4c2554
push dword [esi + 4]
push ecx
call fcn.0040c3dd
mov dword [esi + 4], esi
xor edi, edi
mov dword [esi], esi
mov ecx, 0x4c255c
mov dword [esi + 8], esi
mov esi, dword [0x4c255c]
mov dword [0x4c2558], edi
push dword [esi + 4]
push ecx
call fcn.0040c4d3
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x4c2560], edi
mov edi, dword [0x4c2618]
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x398], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor eax, eax
push eax
mov esi, edx
call fcn.0046ca38
push edi
push esi
push eax
lea eax, [ebp - 0x304]
push str._u_03u_02u
push eax
call fcn.0040bead
add esp, 0x18
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x304]
call fcn.0040961c
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0040966e
mov eax, dword [ebp - 0x304]
lea edx, [ebp - 0x2f8]
xor ecx, ecx
mov dword [ebp - 0x2f8], 0x2e
inc ecx
mov dword [ebp - 0x308], ecx
push dword [eax - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x2ec]
call fcn.004096c9
add esp, 0xc
lea eax, [ebp - 0x2ec]
lea ecx, [ebp - 0x390]
push eax
call fcn.0040951e
xor eax, eax
inc eax
mov dword [ebp - 0x308], eax
and eax, 0xfffffffe
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ec]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x394]
call fcn.0040951e
lea eax, [ebp - 0x2f0]
mov esi, 0x4c24e8
push eax
mov ecx, esi
call fcn.0040951e
lea edx, [ebp - 0x398]
lea ecx, [ebp - 0x300]
call fcn.0042b372
mov ecx, esi
mov dword [ebp - 0x2e8], eax
call fcn.0040a366
cmp dword [ebp - 0x2e8], 0
jne 0x42afe7
mov ecx, dword [ebp - 0x318]
test ecx, ecx
je 0x42ad20
mov al, byte [ebp - 0x383]
mov byte [ecx], al
xor edx, edx
lea ecx, [ebp - 0x398]
inc edx
call fcn.00431c40
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
lea ecx, [ebp - 0x398]
call fcn.0043127a
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
push 2
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431c40
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
push 3
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431c40
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
lea ecx, [ebp - 0x398]
call fcn.004316ba
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
push 4
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431c40
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
push 5
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431c40
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
lea ecx, [ebp - 0x398]
call fcn.00431a68
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
push 6
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431c40
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
lea ecx, [ebp - 0x398]
call fcn.00432105
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
lea ecx, [ebp - 0x398]
call fcn.00431900
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42afde
lea ecx, [ebp - 0x398]
call fcn.004324c9
test bl, bl
jne 0x42aeba
test bh, bh
jne 0x42aeba
lea eax, [ebp - 0x30c]
mov ecx, 0x4c261c
push eax
lea eax, [ebp - 0x3a4]
push eax
call fcn.0041b8c2
mov eax, dword [ebp - 0x39c]
mov ecx, dword [0x4c261c]
cmp byte [eax + 0xd], bh
jne 0x42ae8c
mov edx, dword [ebp - 0x30c]
cmp edx, dword [eax + 0x10]
jae 0x42ae8e
mov eax, ecx
cmp eax, ecx
je 0x42aeba
mov eax, dword [eax + 0x24]
sub eax, 1
je 0x42aeb8
sub eax, 1
je 0x42aeb8
sub eax, 1
je 0x42aea9
sub eax, 1
jne 0x42aeba
mov cl, 1
call fcn.00430986
test al, al
jne 0x42aeba
mov bl, cl
jmp 0x42aeba
mov bh, 1
cmp byte [ebp - 0x38a], 0
jne 0x42aecb
test bl, bl
je 0x42afde
test bh, bh
jne 0x42afde
mov eax, dword [0x4c257c]
lea ecx, [ebp - 0x2f8]
push ecx
mov esi, 0x2001f
xor ebx, ebx
or eax, esi
push eax
push ebx
push dword [0x4c2578]
push dword [0x4c2574]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42af72
push ebx
lea eax, [ebp - 0x2ec]
push eax
push ebx
push esi
push 1
push ebx
push ebx
push str.EmUpdatePending
push dword [ebp - 0x2f8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42af6a
mov eax, dword [ebp - 0x378]
mov esi, dword [eax]
jmp 0x42af5e
cmp dword [esi + 0x10], ebx
je 0x42af5c
push ebx
call fcn.0046ca95
mov ecx, dword [ebp - 0x2ec]
push edx
push eax
push dword [esi + 0x10]
mov edx, str.MicroUpdates
call fcn.00420834
mov eax, dword [ebp - 0x378]
add esp, 0x10
mov esi, dword [esi]
cmp esi, eax
jne 0x42af33
push dword [ebp - 0x2ec]
call edi
push dword [ebp - 0x2f8]
call edi
mov eax, dword [0x4c258c]
cmp dword [eax - 0xc], ebx
je 0x42afde
push eax
push str.Creating_reboot_file:__s
call fcn.0041e1d8
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [0x4c258c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42afde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xb7
je 0x42afde
push 4
push ebx
push dword [0x4c258c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x42afde
mov dword [ebp - 0x2e8], 0x57
cmp dword [ebp - 0x2e8], 0
je 0x42b05b
lea ecx, [ebp - 0x398]
call fcn.004321d6
lea ecx, [ebp - 0x398]
call fcn.0043227a
lea ecx, [ebp - 0x398]
call fcn.004323d6
mov eax, dword [ebp - 0x368]
mov esi, dword [eax]
jmp 0x42b02e
cmp byte [esi + 0x14], 0
jne 0x42b02c
cmp byte [esi + 0x15], 0
je 0x42b02c
mov ecx, dword [esi + 0x10]
call fcn.0042640b
mov eax, dword [ebp - 0x368]
mov esi, dword [esi]
cmp esi, eax
jne 0x42b012
mov edi, dword [ebp - 0x350]
mov esi, dword [edi]
jmp 0x42b057
cmp byte [esi + 9], 0
jne 0x42b055
cmp byte [esi + 8], 0
je 0x42b055
mov ecx, dword [esi + 0x10]
call fcn.0042640b
xor eax, eax
mov byte [esi + 8], al
mov esi, dword [esi]
cmp esi, edi
jne 0x42b03c
mov edx, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x398]
call fcn.00431cc5
mov esi, dword [ebp - 0x2e8]
test esi, esi
jne 0x42b09a
mov eax, dword [0x4c25e4]
cmp eax, dword [0x4c25d0]
je 0x42b088
mov dword [0x4c25d0], eax
mov eax, dword [0x4c25e0]
cmp eax, dword [0x4c25cc]
je 0x42b09a
mov dword [0x4c25cc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x398]
call fcn.0042b106
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x304]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x314]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2f0]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2e4]
call fcn.00451260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3b0]
call fcn.0041e740
mov eax, esi
call fcn.00456974
ret