Function at 0x40a430
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x43d00c]
mov edi, edx
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x248], eax
lea eax, [esp + 8]
push eax
push ecx
call fcn.0041aa02
add esp, 8
test eax, eax
jne 0x40a671
movzx eax, word [esp + 0xe]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40a50e
push esi
call fcn.00411aa0
add esp, 4
test eax, eax
je 0x40a634
mov ebx, eax
mov dword [esp + 4], esi
push eax
call fcn.00411b40
add esp, 4
test eax, eax
je 0x40a5d9
mov esi, eax
jmp 0x40a4c3
push ebx
call fcn.00411b40
add esp, 4
mov esi, eax
test eax, eax
je 0x40a5d9
push 0x438596
push esi
call fcn.0041ffae
add esp, 8
test eax, eax
je 0x40a4b0
push 0x438594
push esi
call fcn.0041ffae
add esp, 8
test eax, eax
je 0x40a4b0
push esi
push dword [esp + 8]
push str._s__s
push 0x104
lea esi, [esp + 0x4e]
push esi
call fcn.00403ef0
add esp, 0x14
mov ecx, esi
mov edx, edi
call fcn.0040a430
jmp 0x40a4b0
lea ebx, [esp + 0x3e]
push ebx
push 0x437d54
push edi
call fcn.00411cd0
add esp, 0xc
push ebx
call fcn.0041dcf2
add esp, 4
test eax, eax
je 0x40a573
call fcn.0041a26c
cmp dword [eax], 2
je 0x40a573
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a750
call fcn.0041a26c
push dword [eax]
push ebx
push str.remove_recursive_on_reboot:_failed_to_remove_temporary_file:__S__err:__d
push 0x43f890
call fcn.00410af0
add esp, 0x10
mov ecx, esi
mov edx, ebx
push 0
call fcn.0040a040
add esp, 4
test eax, eax
cmove esi, ebx
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, esi
mov esi, eax
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a687
test esi, esi
mov eax, str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
mov ecx, str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
cmove ecx, eax
push edi
push ecx
push 0x43f890
call fcn.00410af0
add esp, 0xc
jmp 0x40a671
push ebx
call fcn.00411b10
add esp, 4
push 0x180
mov esi, dword [esp + 8]
push esi
call fcn.0041d53f
add esp, 8
push esi
call fcn.0041dd47
add esp, 4
test eax, eax
je 0x40a671
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a6ca
call fcn.0041a26c
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
jmp 0x40a664
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a70d
call fcn.0041a26c
push dword [eax]
push 0
push esi
push str.remove_recursive_on_reboot:_unable_to_open_directory:__S__rv:__d__err:__d
push 0x43f890
call fcn.00410af0
add esp, 0x14
mov ecx, dword [esp + 0x248]
xor ecx, ebp
call fcn.00412fa1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40a5b6
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40a5b6
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40a624
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40a624
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40a655
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40a655
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x40a559
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x40a559