Function at 0x40a060
Capabilities:
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.00419fe2
add esp, 8
test eax, eax
jne 0x40a292
movzx eax, word [esp + 0xe]
mov dword [esp + 4], esi
and eax, 0xf000
cmp eax, 0x4000
jne 0x40a18c
push esi
call fcn.004110f0
add esp, 4
test eax, eax
je 0x40a252
mov ebx, eax
push eax
call fcn.00411190
add esp, 4
test eax, eax
je 0x40a12a
mov esi, eax
push 0x4385ca
push esi
call fcn.0041f76e
add esp, 8
test eax, eax
je 0x40a11b
push 0x4385c8
push esi
call fcn.0041f76e
add esp, 8
test eax, eax
je 0x40a11b
push esi
push dword [esp + 8]
push str._s__s
push 0x104
lea esi, [esp + 0x4e]
push esi
call fcn.00403e90
add esp, 0x14
mov ecx, esi
mov edx, edi
call fcn.0040a060
push ebx
call fcn.00411190
add esp, 4
mov esi, eax
test eax, eax
jne 0x40a0d2
push ebx
call fcn.00411160
add esp, 4
push 0x180
mov esi, dword [esp + 8]
push esi
call fcn.0041cd28
add esp, 8
push esi
call fcn.0041d530
add esp, 4
test eax, eax
je 0x40a292
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov edi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a2eb
call fcn.0041984c
push dword [eax]
push edi
push esi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
jmp 0x40a285
lea ebx, [esp + 0x3e]
push ebx
push 0x437d54
push edi
call fcn.00411320
add esp, 0xc
push ebx
call fcn.0041d4db
add esp, 4
test eax, eax
je 0x40a1f1
call fcn.0041984c
cmp dword [eax], 2
je 0x40a1f1
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a371
call fcn.0041984c
push dword [eax]
push ebx
push str.remove_recursive_on_reboot:_failed_to_remove_temporary_file:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
mov edi, dword [esp + 4]
xor esi, esi
mov edx, ebx
mov ecx, edi
push esi
call fcn.00409c70
add esp, 4
test eax, eax
cmove edi, ebx
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a2a8
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 0x43f3e8
call fcn.0040ff00
add esp, 0xc
jmp 0x40a292
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a32e
call fcn.0041984c
push dword [eax]
push 0
push dword [esp + 0xc]
push str.remove_recursive_on_reboot:_unable_to_open_directory:__S__rv:__d__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x14
mov ecx, dword [esp + 0x248]
xor ecx, ebp
call fcn.00412591
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a232
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a232
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a179
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a179
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a273
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a273
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40a1d7
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40a1d7