Function at 0x42a13b
Capabilities:
Move file

Disassembly:
push 0x3a4
mov eax, 0x47f109
call fcn.00454305
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.0041e3a4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2e4]
call fcn.0044ebc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2fc]
call fcn.0044ebb0
lea ecx, [ebp - 0x2f0]
call fcn.0040aa2d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x314]
call fcn.0040aa2d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x304]
call fcn.0040aa2d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x398]
call fcn.0043315d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x300]
call fcn.0044ebb0
xor eax, eax
or edi, 0xffffffff
mov byte [ebp - 0x2f1], al
mov bh, bl
test esi, esi
je 0x42a98c
cmp word [esi], ax
je 0x42a98c
push esi
lea ecx, [ebp - 0x2ec]
call fcn.0040948c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2ec]
call fcn.0041f8a4
mov bl, al
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ec]
add ecx, 0xfffffff0
call fcn.0040aa0b
test bl, bl
jne 0x42a27e
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 0x42a26f
cmp word [ebp - 0x21c], 0
je 0x42a26f
lea eax, [ebp - 0x21c]
push eax
jmp 0x42a27f
mov dword [ebp - 0x2e8], 0x57
jmp 0x42a99f
push esi
lea ecx, [ebp - 0x2f0]
call fcn.0040a5c2
push 0x5c
push 0x2f
lea ecx, [ebp - 0x2f0]
call fcn.00409396
xor eax, eax
lea ecx, [ebp - 0x2e4]
push eax
push 0x74
push esi
lea eax, [ebp - 0x324]
push eax
call fcn.0044fb60
lea ecx, [ebp - 0x324]
call fcn.0044ece0
test al, al
jne 0x42a2f4
push dword [ebp - 0x320]
lea ecx, [ebp - 0x324]
push dword [ebp - 0x324]
call fcn.0044f600
push eax
push str.XML_is_not_valid:___hs__error:_u__file_offset:_u
call fcn.0041defb
add esp, 0x10
mov dword [ebp - 0x2e8], 0xd
jmp 0x42a99f
push 0x5c
push dword [ebp - 0x2f0]
call fcn.00454aca
pop ecx
pop ecx
test eax, eax
jne 0x42a30c
or eax, 0xffffffff
jmp 0x42a314
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.00416bff
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x314]
push eax
call fcn.0040943e
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
push esi
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040bbee
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2f0]
push eax
call fcn.0040943e
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
lea ecx, [ebp - 0x2f0]
call fcn.0040936e
push str.aswmicroupdate
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0044f1f0
lea ecx, [ebp - 0x2fc]
mov eax, dword [eax]
mov dword [ebp - 0x2fc], eax
call fcn.0044ece0
test al, al
jne 0x42a2e5
xor eax, eax
lea ecx, [ebp - 0x2fc]
mov esi, eax
lea eax, [ebp - 0x2ec]
push str.version
push eax
call fcn.0044f130
lea ecx, [ebp - 0x2ec]
call fcn.0044ed10
test eax, eax
je 0x42a3f8
xor eax, eax
lea ecx, [ebp - 0x2ec]
push eax
call fcn.0044f0d0
mov esi, eax
cmp esi, edi
jle 0x42a40f
cmp esi, 0x19
jg 0x42a40f
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.0044fd60
lea ecx, [ebp - 0x2fc]
mov eax, dword [eax]
mov dword [ebp - 0x2fc], eax
call fcn.0044ed10
test eax, eax
jne 0x42a3be
lea ecx, [ebp - 0x300]
call fcn.0044ece0
test al, al
jne 0x42a2e5
push str.flags
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x300]
call fcn.0044f130
lea ecx, [ebp - 0x310]
call fcn.0044ed10
test eax, eax
je 0x42a54d
lea ecx, [ebp - 0x310]
call fcn.004528e0
mov bl, byte [ebp - 0x2f1]
mov dword [ebp - 0x2ec], eax
lea ecx, [ebp - 0x2ec]
call fcn.0041ecb7
mov esi, dword [ebp - 0x2ec]
push 8
push str.noreboot
push esi
call fcn.0046a3d9
add esp, 0xc
test eax, eax
jne 0x42a4c1
add esi, 0x10
mov dword [ebp - 0x2ec], esi
jmp 0x42a4e6
push 0xb
push str.nobizreboot
push esi
call fcn.0046a3d9
add esp, 0xc
test eax, eax
jne 0x42a4ea
add esi, 0x16
mov dword [ebp - 0x2ec], esi
cmp byte [0x4a7504], al
je 0x42a491
mov bh, 1
jmp 0x42a491
push 6
push str.reboot
push esi
call fcn.0046a3d9
add esp, 0xc
test eax, eax
jne 0x42a51d
add esi, 0xc
mov cl, 1
mov dword [ebp - 0x2ec], esi
call fcn.0042ff3a
test al, al
jne 0x42a491
mov bl, cl
jmp 0x42a491
lea ecx, [ebp - 0x2ec]
call fcn.0041ecb7
mov eax, dword [ebp - 0x2ec]
xor ecx, ecx
cmp word [eax], cx
je 0x42a553
push str.aswmicroupdate
push eax
push str.Invalid_flag__s_in_node__s
call fcn.0041defb
add esp, 0xc
jmp 0x42a2e5
mov bl, byte [ebp - 0x2f1]
mov edi, dword [0x4a7540]
mov eax, edi
inc edi
mov dword [0x4a7540], edi
test eax, eax
je 0x42a5b7
call fcn.00420fed
mov esi, dword [0x4a747c]
mov ecx, 0x4a747c
push dword [esi + 4]
push ecx
call fcn.0040c2c3
mov dword [esi + 4], esi
xor edi, edi
mov dword [esi], esi
mov ecx, 0x4a7484
mov dword [esi + 8], esi
mov esi, dword [0x4a7484]
mov dword [0x4a7480], edi
push dword [esi + 4]
push ecx
call fcn.0040c3b9
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x4a7488], edi
mov edi, dword [0x4a7540]
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.0046a4f8
push edi
push esi
push eax
lea eax, [ebp - 0x304]
push str._u_03u_02u
push eax
call fcn.0040bd93
add esp, 0x18
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x304]
call fcn.0040953c
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0040958e
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.004095e9
add esp, 0xc
lea eax, [ebp - 0x2ec]
lea ecx, [ebp - 0x390]
push eax
call fcn.0040943e
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.0040aa0b
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x394]
call fcn.0040943e
lea eax, [ebp - 0x2f0]
mov esi, 0x4a7410
push eax
mov ecx, esi
call fcn.0040943e
lea edx, [ebp - 0x398]
lea ecx, [ebp - 0x300]
call fcn.0042ad38
mov ecx, esi
mov dword [ebp - 0x2e8], eax
call fcn.0040a2b2
cmp dword [ebp - 0x2e8], 0
jne 0x42a99f
mov ecx, dword [ebp - 0x318]
test ecx, ecx
je 0x42a6d8
mov al, byte [ebp - 0x383]
mov byte [ecx], al
xor edx, edx
lea ecx, [ebp - 0x398]
inc edx
call fcn.00431200
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
lea ecx, [ebp - 0x398]
call fcn.0043082e
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
push 2
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431200
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
push 3
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431200
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
lea ecx, [ebp - 0x398]
call fcn.00430c61
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
push 4
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431200
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
push 5
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431200
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
lea ecx, [ebp - 0x398]
call fcn.00431028
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
push 6
pop edx
lea ecx, [ebp - 0x398]
call fcn.00431200
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
lea ecx, [ebp - 0x398]
call fcn.004316ce
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
lea ecx, [ebp - 0x398]
call fcn.00430ec0
mov dword [ebp - 0x2e8], eax
test eax, eax
jne 0x42a99f
lea ecx, [ebp - 0x398]
call fcn.00431a92
test bl, bl
jne 0x42a872
test bh, bh
jne 0x42a872
lea eax, [ebp - 0x30c]
mov ecx, 0x4a7544
push eax
lea eax, [ebp - 0x3a4]
push eax
call fcn.0041b6aa
mov eax, dword [ebp - 0x39c]
mov ecx, dword [0x4a7544]
cmp byte [eax + 0xd], bh
jne 0x42a844
mov edx, dword [ebp - 0x30c]
cmp edx, dword [eax + 0x10]
jae 0x42a846
mov eax, ecx
cmp eax, ecx
je 0x42a872
mov eax, dword [eax + 0x24]
sub eax, 1
je 0x42a870
sub eax, 1
je 0x42a870
sub eax, 1
je 0x42a861
sub eax, 1
jne 0x42a872
mov cl, 1
call fcn.0042ff3a
test al, al
jne 0x42a872
mov bl, cl
jmp 0x42a872
mov bh, 1
cmp byte [ebp - 0x38a], 0
jne 0x42a883
test bl, bl
je 0x42a996
test bh, bh
jne 0x42a996
mov eax, dword [0x4a74a4]
lea ecx, [ebp - 0x2f8]
push ecx
mov esi, 0x2001f
xor ebx, ebx
or eax, esi
push eax
push ebx
push dword [0x4a74a0]
push dword [0x4a749c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a92a
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 0x42a922
mov eax, dword [ebp - 0x378]
mov esi, dword [eax]
jmp 0x42a916
cmp dword [esi + 0x10], ebx
je 0x42a914
push ebx
call fcn.0046a555
mov ecx, dword [ebp - 0x2ec]
push edx
push eax
push dword [esi + 0x10]
mov edx, str.MicroUpdates
call fcn.00420457
mov eax, dword [ebp - 0x378]
add esp, 0x10
mov esi, dword [esi]
cmp esi, eax
jne 0x42a8eb
push dword [ebp - 0x2ec]
call edi
push dword [ebp - 0x2f8]
call edi
mov eax, dword [0x4a74b4]
cmp dword [eax - 0xc], ebx
je 0x42a996
push eax
push str.Creating_reboot_file:__s
call fcn.0041defb
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [0x4a74b4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a996
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xb7
je 0x42a996
push 4
push ebx
push dword [0x4a74b4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x42a996
mov dword [ebp - 0x2e8], 0x57
cmp dword [ebp - 0x2e8], 0
je 0x42aa13
lea ecx, [ebp - 0x398]
call fcn.0043179f
lea ecx, [ebp - 0x398]
call fcn.00431843
lea ecx, [ebp - 0x398]
call fcn.0043199f
mov eax, dword [ebp - 0x368]
mov esi, dword [eax]
jmp 0x42a9e6
cmp byte [esi + 0x14], 0
jne 0x42a9e4
cmp byte [esi + 0x15], 0
je 0x42a9e4
mov ecx, dword [esi + 0x10]
call fcn.00425d36
mov eax, dword [ebp - 0x368]
mov esi, dword [esi]
cmp esi, eax
jne 0x42a9ca
mov edi, dword [ebp - 0x350]
mov esi, dword [edi]
jmp 0x42aa0f
cmp byte [esi + 9], 0
jne 0x42aa0d
cmp byte [esi + 8], 0
je 0x42aa0d
mov ecx, dword [esi + 0x10]
call fcn.00425d36
xor eax, eax
mov byte [esi + 8], al
mov esi, dword [esi]
cmp esi, edi
jne 0x42a9f4
mov edx, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x398]
call fcn.0043128e
mov esi, dword [ebp - 0x2e8]
test esi, esi
jne 0x42aa60
mov ecx, dword [0x4a74f8]
cmp dword [0x4a750c], ecx
cmovne ecx, dword [0x4a750c]
mov dword [0x4a74f8], ecx
mov ecx, dword [0x4a74f4]
cmp dword [0x4a7508], ecx
cmovne ecx, dword [0x4a7508]
mov dword [0x4a74f4], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x398]
call fcn.0042aacc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x304]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x314]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2f0]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x2e4]
call fcn.0044eca0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3b0]
call fcn.0041e418
mov eax, esi
call fcn.004542b4
ret