Function at 0x432460
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480080
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4324a4
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00440b10
or ebx, 0xffffffff
test eax, eax
jne 0x4324d2
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x4329f3
call fcn.0042ade0
push 0xd
push str.installer.exe
lea ecx, [ebp - 0x10]
call fcn.00409770
cmp dword [0x4b049c], 0
je 0x4324f4
call fcn.0040f7c0
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4326ff
push str.Installer_exists__will_be_unregistered_and_changed_with_new_one
push 1
push 3
push 0x4b
push str.CInstActionDeployInstaller::DoAction
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x2c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x10
call fcn.0042aca0
cmp dword [0x4b049c], 0
jne 0x4325b8
cmp word [0x4b060c], 0
jne 0x432562
cmp word [0x4b060e], 0
jne 0x432562
cmp word [0x4b0610], 0
jne 0x432562
cmp word [0x4b0612], 0
je 0x432572
cmp dword [0x4b04b0], 0
jne 0x432572
mov edx, 1
jmp 0x432574
xor edx, edx
cmp word [0x4b0604], 0
jne 0x4325a3
cmp word [0x4b0606], 0
jne 0x4325a3
cmp word [0x4b0608], 0
jne 0x4325a3
cmp word [0x4b060a], 0
jne 0x4325a3
mov eax, 1
jmp 0x4325a5
xor eax, eax
xor ecx, ecx
test eax, eax
push 0
push 0
sete cl
call fcn.0040f160
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4326ff
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4325e3
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
xor edi, edi
nop word [eax + eax]
push str.._i.bak
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00409520
push edi
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004040a0
mov byte [ebp - 4], 1
add esp, 0x10
mov edx, dword [ebp - 0x18]
inc edi
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432642
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x432600
mov edi, dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x432690
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.Error_renaming_installer____s______s___error___i
push 3
push 3
push 0x61
push str.CInstActionDeployInstaller::DoAction
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x2c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x1c
jmp 0x4326cc
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4326f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MOVEFILE_DELAY_UNTIL_REBOOT_error___i
push 3
push 3
push 0x67
push str.CInstActionDeployInstaller::DoAction
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x2c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4326e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 0
jmp 0x4329f3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004031b0
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x43271b
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov ebx, 0x105
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x43274e
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403880
mov esi, dword [ebp - 0x14]
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jne 0x43276e
add ebx, 0x104
jns 0x432731
push 0x80070057
call fcn.004039a0
push dword [esi - 8]
push esi
call fcn.0045ed24
add esp, 8
test eax, eax
js 0x432764
cmp eax, dword [esi - 8]
jg 0x432764
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
push edi
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4327d7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copying_installer_error___x__src_s__dst_s
push 3
push 3
push 0x74
push str.CInstActionDeployInstaller::DoAction
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x2c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x1c
mov dword [ebp - 0x14], 0
or ebx, 0xffffffff
jmp 0x4329d8
mov ecx, edi
call fcn.00446690
test eax, eax
je 0x432818
push eax
push str.SetLowFileSecurity_FAILED_error___i
push 3
push 3
push 0x7c
push str.CInstActionDeployInstaller::DoAction
push str.c:_buildagentwork_b0d71a1a28f6c898installerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x2c]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
mov dword [ebp - 0x14], 0
or ebx, 0xffffffff
jmp 0x4329d8
mov ecx, edi
call fcn.0042a910
cmp dword [0x4b049c], 0
jne 0x432860
mov ecx, 0x4b060c
call fcn.0044ac00
test eax, eax
je 0x432846
cmp dword [0x4b04b0], 0
jne 0x432846
mov edx, 1
jmp 0x432848
xor edx, edx
push 1
push 1
mov ecx, 0x4b0604
call fcn.0044ac00
mov ecx, eax
call fcn.0040f160
add esp, 8
mov ecx, 0x4b0604
call fcn.0044ac00
test eax, eax
je 0x4328c8
push str.__UNINSTPCK
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00409520
mov byte [ebp - 4], 4
mov ecx, str.29650533_2E1B_4517_9D0C_B7243F12DF94
push dword [eax]
cmp dword [0x4b0478], 0
mov eax, str.299FFF17_0FDF_47F4_A894_1DADF0D98007
mov edx, str.E44BBEE3_3F83_4670_9E2E_EE0556442287
cmove ecx, eax
call fcn.00446f70
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4328cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4328cb
or ebx, 0xffffffff
mov ecx, 0x4b060c
call fcn.0044ac00
test eax, eax
je 0x43292e
push str.__UNINSTSEC
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00409520
mov byte [ebp - 4], 5
mov ecx, str.6D62ECA7_CC77_47AF_AA5C_FE6B72350139
push dword [eax]
cmp dword [0x4b0478], 0
mov eax, str.FE88A67B_BBC2_49A8_B12F_3504144E1044
mov edx, str.E7E7B26A_88AA_48B0_A47C_173C062FD904
cmove ecx, eax
call fcn.00446f70
mov byte [ebp - 4], 3
add esp, 8
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43292e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._c_erase__F__Q__
lea ecx, [ebp - 0x20]
call fcn.00403ac0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041a7c0
push str...bak_
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00409520
add esp, 8
push 0
push 0
push dword [eax]
push 0x4991f8
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432995
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4329b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4329d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4329f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x432a0f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret