Function at 0x40af00
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 [0x43e00c]
xor eax, ebp
mov dword [esp + 0x248], eax
lea eax, [esp + 8]
push eax
push ecx
call fcn.0041a37f
add esp, 8
test eax, eax
jne 0x40b134
movzx eax, word [esp + 0xe]
and eax, 0xf000
cmp eax, 0x4000
mov dword [esp + 4], esi
jne 0x40b02c
push esi
call fcn.004303f0
add esp, 4
test eax, eax
je 0x40b0da
mov ebx, eax
push eax
call fcn.00430490
add esp, 4
test eax, eax
je 0x40afca
mov esi, eax
push 0x4387ea
push esi
call fcn.0041fa9e
add esp, 8
test eax, eax
je 0x40afbb
push 0x4387e8
push esi
call fcn.0041fa9e
add esp, 8
test eax, eax
je 0x40afbb
push esi
push dword [esp + 8]
push str._s__s
push 0x104
lea esi, [esp + 0x4e]
push esi
call fcn.00404cf0
add esp, 0x14
mov ecx, esi
mov edx, edi
call fcn.0040af00
push ebx
call fcn.00430490
add esp, 4
mov esi, eax
test eax, eax
jne 0x40af72
push ebx
call fcn.00430460
add esp, 4
push 0x180
mov edi, dword [esp + 8]
push edi
call fcn.0041d0c8
add esp, 8
push edi
call fcn.0041d863
add esp, 4
test eax, eax
je 0x40b134
mov esi, eax
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b186
call fcn.004122fc
push dword [eax]
push esi
push edi
push str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
jmp 0x40b10d
lea ebx, [esp + 0x3e]
push ebx
push 0x437f56
push edi
call fcn.00430630
add esp, 0xc
push ebx
call fcn.0041d80e
add esp, 4
test eax, eax
je 0x40b091
call fcn.004122fc
cmp dword [eax], 2
je 0x40b091
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b20c
call fcn.004122fc
push dword [eax]
push ebx
push str.remove_recursive_on_reboot:_failed_to_remove_temporary_file:__S__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x10
xor esi, esi
mov edi, dword [esp + 4]
mov ecx, edi
mov edx, ebx
push esi
call fcn.0040ab30
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 [0x43eb8c]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x4405f4]
mov edx, dword [edx + 4]
test eax, eax
je 0x40b11c
mov esi, str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
jmp 0x40b121
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40b1c9
call fcn.004122fc
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 0x4403e8
call fcn.00410340
add esp, 0x14
jmp 0x40b134
mov esi, str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
cmp ecx, edx
jg 0x40b14a
push edi
push esi
push 0x4403e8
call fcn.00410340
add esp, 0xc
mov ecx, dword [esp + 0x248]
xor ecx, ebp
call fcn.00412b41
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b125
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b125
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b019
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b019
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b0fb
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b0fb
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40b077
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40b077