Function at 0x409c70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x43d00c]
mov edi, ecx
mov ecx, edx
mov esi, edx
xor eax, ebp
mov dword [esp + 0x30], eax
call fcn.004036c0
mov ebx, eax
test eax, eax
jne 0x409ce8
mov eax, esp
push eax
push edi
call fcn.00419fe2
add esp, 8
test eax, eax
je 0x409cfd
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 0x409e85
call fcn.0041984c
push dword [eax]
push edi
push str.rename_file:_failed_to_read_file_status_info:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
mov ebx, 6
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00412591
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, word [esp + 6]
and eax, 0xf000
cmp eax, 0x8000
je 0x409d5c
mov cl, byte [ebp + 8]
movzx eax, ax
mov edx, dword fs:[0x2c]
xor cl, 1
cmp eax, 0x4000
mov eax, dword [0x43f5f4]
sete bl
or bl, cl
mov ecx, dword [0x43db8c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409ec8
test bl, bl
je 0x409e5a
push str.rename_file:_proceeding_to_rename_the_directory
push 0x43f3e8
call fcn.0040ff00
add esp, 8
push 0
push esi
call fcn.0041ca95
add esp, 8
test eax, eax
je 0x409dc3
push esi
push edi
call fcn.0041d503
add esp, 8
test eax, eax
je 0x409e7e
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 0x409f0b
call fcn.0041984c
push dword [eax]
push esi
push edi
push str.rename_file:_failed_to_rename_file___src:__S__dst:_S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x14
mov ebx, 7
jmp 0x409ce8
push 0x180
push esi
call fcn.0041cd28
add esp, 8
push esi
call fcn.0041d4db
add esp, 4
test eax, eax
je 0x409d6b
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov ebx, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x409f4e
call fcn.0041984c
push dword [eax]
push ebx
push esi
push str.ensure_remove:_failed_to_remove_file:__S__rv:__d__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x14
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 0x409f91
push esi
push str.rename_file:_destination_file_exists_and_could_not_be_removed:__S
push 0x43f3e8
call fcn.0040ff00
add esp, 0xc
mov ebx, 0x3e
jmp 0x409ce8
call fcn.0041984c
push dword [eax]
push edi
push str.rename_file:_path_present__but_not_a_file:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
mov ebx, 0x30
jmp 0x409ce8
xor ebx, ebx
jmp 0x409ce8
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409cc9
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409cc9
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409d42
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409d42
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409d9e
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409d9e
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409e01
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409e01
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x409e3d
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x409e3d