Function at 0x42f770
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514e54
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x258]
call fcn.0043aa60
push 0x526a74
push 0xfc
push dword [0x587c54]
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0
call fcn.0043acb0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bc5f0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00439230
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
call fcn.0040f5e0
mov ecx, eax
test ecx, ecx
je 0x42fcbd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x42f83e
movzx eax, ax
lea ecx, [ebp - 0x24c]
push eax
call fcn.00410890
jmp 0x42f869
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f847
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.00412010
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x258]
call fcn.0043aeb0
mov edx, dword [ebp - 0x24c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f8a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x526a7c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f9a2
call fcn.00474650
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42fc94
push 0x40
push str.d:jenkins.jenkinsworkspacemaster_luinst_uiinst_uiinst.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], bl
call fcn.0040c270
push 3
push 0x524880
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], bl
call fcn.0040c270
mov byte [ebp - 4], 4
call fcn.00474650
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x65
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00409f40
mov esi, eax
push str.file_KB931125.exe_is_not_exit
push esi
mov byte [ebp - 4], 5
call fcn.0040ada0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.0040ae60
lea ecx, [ebp - 0x248]
call fcn.0040a970
lea ecx, [ebp - 0x230]
call fcn.0040a970
jmp 0x42fc94
push 0
push 1
push 0
push 0
push 0x526ab8
lea eax, [ebp - 0x218]
push eax
call fcn.00422160
test eax, eax
jne 0x42fb1c
call fcn.00474650
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42fb1c
push 0x40
push str.d:jenkins.jenkinsworkspacemaster_luinst_uiinst_uiinst.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], bl
call fcn.0040c270
push 3
push 0x524880
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040c270
mov byte [ebp - 4], 7
call fcn.00474650
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x6c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00409f40
mov esi, eax
push str.run_KB931125.exe_error
push esi
mov byte [ebp - 4], 8
call fcn.0040ada0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.0040ae60
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x42fac3
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42fab9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fcc7
push edx
push ecx
call fcn.004759bb
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42fb1c
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42fb12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fccc
push edx
push ecx
call fcn.004759bb
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42fc8f
call fcn.00474650
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42fc7e
push 0x40
push str.d:jenkins.jenkinsworkspacemaster_luinst_uiinst_uiinst.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0040c270
push 3
push 0x524880
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040c270
mov byte [ebp - 4], 0xa
call fcn.00474650
mov edi, eax
lea ecx, [ebp - 0x2f0]
push 0x6f
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00409f40
mov esi, eax
push str.delete_KB931125.exe_FAIL__delay_until_reboot
push esi
mov byte [ebp - 4], 0xb
call fcn.0040ada0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.0040ae60
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x42fc2d
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fcd1
push edx
push ecx
call fcn.004759bb
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x42fc7e
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fcd6
push edx
push ecx
call fcn.004759bb
add esp, 8
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, 1
lea ecx, [ebp - 0x258]
call fcn.0043aa80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475dd9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407af0
call fcn.004c7638
call fcn.004c7638
call fcn.004c7638
call fcn.004c7638
int3