Function at 0x40a6d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov edi, edx
mov esi, ecx
mov eax, dword [0x440014]
xor eax, ebp
mov dword [esp + 0x248], eax
lea eax, [esp + 8]
push eax
push ecx
call fcn.0041a5f6
add esp, 8
test eax, eax
jne 0x40a7ea
movzx eax, word [esp + 0xe]
and eax, 0xf000
cmp eax, 0x4000
mov dword [esp + 4], esi
je 0x40a800
lea ebx, [esp + 0x3e]
push ebx
push 0x43a56a
push edi
call fcn.004327d0
add esp, 0xc
push ebx
call fcn.0041e22e
add esp, 4
test eax, eax
je 0x40a785
call fcn.00419e69
cmp dword [eax], 2
je 0x40a785
mov eax, dword [0x4426f0]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a924
call fcn.00419e69
push dword [eax]
push ebx
push str.remove_recursive_on_reboot:_failed_to_remove_temporary_file:__S__err:__d
push 0x4424e4
call fcn.00410520
add esp, 0x10
xor esi, esi
mov edi, dword [esp + 4]
mov ecx, edi
mov edx, ebx
push esi
call fcn.0040a140
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 [0x440c90]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x4426f0]
mov edx, dword [edx + 4]
test eax, eax
je 0x40a7ce
mov esi, str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
jmp 0x40a7d3
mov esi, str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
cmp ecx, edx
jg 0x40a8e1
push edi
push esi
push 0x4424e4
call fcn.00410520
add esp, 0xc
mov ecx, dword [esp + 0x248]
xor ecx, ebp
call fcn.00412e03
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.00432590
add esp, 4
mov ebx, eax
push eax
call fcn.00432630
add esp, 4
test eax, eax
je 0x40a872
mov esi, eax
push 0x43adfe
push esi
call fcn.00420a8a
add esp, 8
test eax, eax
je 0x40a863
push 0x43adfc
push esi
call fcn.00420a8a
add esp, 8
test eax, eax
je 0x40a863
push esi
push dword [esp + 8]
push str._s__s
push 0x104
lea esi, [esp + 0x4e]
push esi
call fcn.00404340
add esp, 0x14
mov ecx, esi
mov edx, edi
call fcn.0040a6d0
push ebx
call fcn.00432630
add esp, 4
mov esi, eax
test eax, eax
jne 0x40a81a
push ebx
call fcn.00432600
add esp, 4
push 0x180
mov edi, dword [esp + 8]
push edi
call fcn.0041db14
add esp, 8
push edi
call fcn.0041e283
add esp, 4
test eax, eax
je 0x40a7ea
mov esi, eax
mov eax, dword [0x4426f0]
mov ecx, dword [0x440c90]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a967
call fcn.00419e69
push dword [eax]
push esi
push edi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
push 0x4424e4
call fcn.00410520
add esp, 0x14
jmp 0x40a7ea
push 0x4426f0
call fcn.00412457
add esp, 4
cmp dword [0x4426f0], 0xffffffff
jne 0x40a7db
mov dword [0x4424e4], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f0
call fcn.004124a9
add esp, 4
jmp 0x40a7db
push 0x4426f0
call fcn.00412457
add esp, 4
cmp dword [0x4426f0], 0xffffffff
jne 0x40a76b
mov dword [0x4424e4], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f0
call fcn.004124a9
add esp, 4
jmp 0x40a76b
push 0x4426f0
call fcn.00412457
add esp, 4
cmp dword [0x4426f0], 0xffffffff
jne 0x40a8c1
mov dword [0x4424e4], 0
push 0x40a110
call fcn.0041261c
add esp, 4
push 0x4426f0
call fcn.004124a9
add esp, 4
jmp 0x40a8c1