Function at 0x431660
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a42ec
mov eax, dword fs:[0]
push eax
sub esp, 0x6f4
mov eax, dword [0x4d61d4]
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
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x664], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx]
mov dword [ebp - 0x660], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x65c], edi
cmp esi, eax
je 0x4316cd
mov edi, eax
mov ecx, esi
call fcn.0042fd90
add esi, 0xc
cmp esi, edi
jne 0x4316b7
mov esi, dword [ebx]
mov edi, dword [ebp - 0x65c]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x664]
test esi, esi
je 0x431c8c
test edi, edi
je 0x431c8c
push 3
push edi
push esi
call fcn.0047395b
add esp, 0xc
test eax, eax
je 0x43170b
push dword [ebp - 0x660]
push edi
push esi
call fcn.00430bd0
add esp, 0xc
jmp 0x431c8e
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004693b0
push 0x104
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00470433
add esp, 0x1c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x431c8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4adc4c
lea ecx, [ebp - 0x65c]
mov esi, eax
call fcn.00412c90
mov dword [ebp - 4], 0
lea eax, [ebp - 0x65c]
push esi
push eax
lea ecx, [ebp - 0x634]
call fcn.0042fbd0
mov byte [ebp - 4], 1
mov ecx, ebx
push eax
call fcn.00432210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x634]
call fcn.0042fd90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x65c]
call fcn.00404000
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4adad8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x431849
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push 0x4adc5c
lea ecx, [ebp - 0x65c]
mov esi, eax
call fcn.00412c90
mov dword [ebp - 4], 2
lea eax, [ebp - 0x65c]
push esi
push eax
lea ecx, [ebp - 0x634]
call fcn.0042fbd0
mov byte [ebp - 4], 3
mov ecx, ebx
push eax
call fcn.00432210
mov byte [ebp - 4], 2
jmp 0x431a61
push 3
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x431a1e
lea eax, [ebp - 0x218]
push eax
call fcn.00425220
add esp, 4
test eax, eax
jne 0x4319c0
push 4
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00430950
add esp, 0xc
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x4319c0
push 0x58
mov dword [ebp - 0x648], eax
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x644], eax
push str.d:jenkins.jenkinsworkspacemaster_luhome_installerhome_installer_srcutilsutils.cc
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], al
call fcn.004076f0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x640]
push 3
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
push 0x4a9c6c
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.004076f0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x658]
push 0x2a0
push eax
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x700]
call fcn.00409020
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x660]
push str.move_exist_file__s_to__s__delete_it_by_pending
push eax
call fcn.0042d4f0
add esp, 0x10
mov byte [ebp - 4], 7
mov ecx, esi
push eax
call fcn.00421c60
mov esi, eax
call fcn.00438dc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x660]
call fcn.00404000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x700]
call fcn.00404eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x640]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x658]
call fcn.004041a0
push 3
push edi
push dword [ebp - 0x664]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
jne 0x431c88
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push 0x4adcd0
lea ecx, [ebp - 0x65c]
mov esi, eax
call fcn.00412c90
mov dword [ebp - 4], 9
lea eax, [ebp - 0x65c]
push esi
push eax
lea ecx, [ebp - 0x634]
call fcn.0042fbd0
mov byte [ebp - 4], 0xa
mov ecx, ebx
push eax
call fcn.00432210
mov byte [ebp - 4], 9
jmp 0x431a61
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push str.T_rT
lea ecx, [ebp - 0x65c]
mov esi, eax
call fcn.00412c90
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x65c]
push esi
push eax
lea ecx, [ebp - 0x634]
call fcn.0042fbd0
mov byte [ebp - 4], 0xc
mov ecx, ebx
push eax
call fcn.00432210
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x634]
call fcn.0042fd90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x65c]
call fcn.00404000
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004693b0
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push 0
push 0x4adad8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 3
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x664]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.00430950
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x668], esi
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x431c1f
push 0x58
mov dword [ebp - 0x630], eax
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x62c], eax
push str.d:jenkins.jenkinsworkspacemaster_luhome_installerhome_installer_srcutilsutils.cc
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], al
call fcn.004076f0
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x658]
push 3
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
push 0x4a9c6c
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], 0
call fcn.004076f0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x640]
push 0x2bf
push eax
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x700]
call fcn.00409020
mov esi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x664]
lea eax, [ebp - 0x660]
push str.copy__s_to__s__replace_until_reboot
push eax
call fcn.0042d4f0
add esp, 0x10
mov byte [ebp - 4], 0x10
mov ecx, esi
push eax
call fcn.00421c60
mov esi, eax
call fcn.00438dc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x660]
call fcn.00404000
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x700]
call fcn.00404eb0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x658]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x640]
call fcn.004041a0
mov esi, dword [ebp - 0x668]
test esi, esi
jne 0x431c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4adcf4
lea ecx, [ebp - 0x65c]
mov esi, eax
call fcn.00412c90
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x65c]
push esi
push eax
lea ecx, [ebp - 0x634]
call fcn.0042fbd0
mov byte [ebp - 4], 0x13
mov ecx, ebx
push eax
call fcn.00432210
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x634]
call fcn.0042fd90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x65c]
call fcn.00404000
mov esi, dword [ebp - 0x668]
mov eax, esi
jmp 0x431c8e
xor eax, eax
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.0043a373
mov esp, ebp
pop ebp
ret