Function at 0x409e60
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x42593b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
push edi
push 0xa00000
call fcn.0041ce6d
mov ebp, dword [esp + 0x254]
mov dword [esp + 0x14], eax
mov eax, dword [0x42f8cc]
add esp, 4
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x24c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x130]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x240], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x433190]
and ecx, 3
cmp al, 6
rep movsb byte es:[edi], byte [esi]
jne 0x409efd
lea edx, [esp + 0x130]
mov edi, str..ldres
jmp 0x409f12
cmp al, 8
lea edx, [esp + 0x130]
mov edi, str..ldres
je 0x409f12
mov edi, str..ldtmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x42f198
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040b7a0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x40a19a
mov edi, dword [esp + 0x248]
test byte [edi + 0xc], 0x10
jne 0x409fc9
cmp ebp, 0xa00000
mov esi, 0xa00000
ja 0x409f74
mov esi, ebp
mov ecx, dword [esp + 0x10]
push edi
push esi
push 1
push ecx
call fcn.0040b8ec
add esp, 0x10
test eax, eax
jle 0x409fc1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x240], 0
push edx
push eax
mov eax, dword [esp + 0x18]
push 1
push eax
call fcn.0040b7b3
add esp, 0x10
sub ebp, esi
je 0x409fc1
mov al, byte [edi + 0xc]
mov dword [esp + 0x240], 0
test al, 0x10
je 0x409f65
jmp 0x409fc9
mov byte [esp + 0x240], 0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b6f2
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x130]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebp, dword [esp + 0x258]
mov eax, ebp
and eax, 2
cmp al, 2
jne 0x40a0db
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x433190]
and ecx, 3
cmp al, 6
rep movsb byte es:[edi], byte [esi]
jne 0x40a042
lea edx, [esp + 0x2c]
mov edi, str..ldres
jmp 0x40a054
cmp al, 8
lea edx, [esp + 0x2c]
mov edi, str..ldres
je 0x40a054
mov edi, str..ldtmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [str.Tipray_LdSafe]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x1c], eax
mov ax, word [0x42f220]
mov edx, dword [0x42f21c]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x42f218]
mov word [esp + 0x28], ax
mov dword [esp + 0x20], ecx
mov edi, str.Tipray_LdSafe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], edx
push ecx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
call fcn.0040a6b0
add esp, 0x10
test eax, eax
jne 0x40a0db
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, ebp
and ecx, 1
cmp cl, 1
jne 0x40a187
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x433190]
and ecx, 3
cmp al, 6
rep movsb byte es:[edi], byte [esi]
jne 0x40a12b
lea edx, [esp + 0x2c]
mov edi, str..ldres
jmp 0x40a13d
cmp al, 8
lea edx, [esp + 0x2c]
mov edi, str..ldres
je 0x40a13d
mov edi, str..ldtmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0040a4e0
add esp, 8
test eax, eax
je 0x40a187
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edx, dword [esp + 0x254]
push edx
push ebx
call fcn.004054b0
add esp, 8
jmp 0x40a1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x1c]
push str.fopen_file__s__Error__d_
push ecx
call fcn.0041c74a
mov edx, dword [esp + 0x24]
add esp, 0x10
mov ecx, 0x433191
push 0
push edx
call fcn.00407170
mov eax, dword [esp + 0x10]
push eax
call fcn.0041ce96
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.0041d10e
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret