Function at 0x6f9900
Capabilities:
Delete file
Get file size
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x813ad4]
push ebx
push esi
lea ecx, [ebp - 0x328]
push edi
mov dword [ebp - 8], 0xfbea
mov byte [ebp - 1], 0
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x6f9924
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6f9933
lea edi, [ebp - 0x328]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x6f9943
push dword [ebp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x328]
and ecx, 3
push 1
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.006f8414
add esp, 0xc
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x6f997b
xor al, al
jmp 0x6f9d37
push dword [ebp + 0xc]
push eax
call fcn.006f84c9
push dword [0x813ad0]
mov esi, eax
call fcn.006f7738
mov edi, eax
mov eax, dword [0x8ad67c]
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
mov ebx, edx
je 0x6f99ae
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x6f99b1
mov dword [ebp - 0x14], ecx
mov eax, esi
cdq
mov esi, eax
add esi, ecx
mov ecx, edx
adc ecx, dword [ebp - 0x14]
cmp ecx, dword [0x813adc]
jg 0x6f9d27
jl 0x6f99d7
cmp esi, dword [0x813ad8]
jae 0x6f9d27
sub edi, eax
sbb ebx, edx
cmp ebx, dword [0x813ae4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jl 0x6f9d27
jg 0x6f99fb
cmp edi, dword [0x813ae0]
jbe 0x6f9d27
mov eax, dword [0x813ad0]
lea edx, [ebp - 0x224]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6f9a08
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6f9a17
lea edi, [ebp - 0x224]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x6f9a27
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x224]
rep movsb byte es:[edi], byte [esi]
call fcn.006f9460
mov eax, dword [0x813ad0]
lea ecx, [ebp - 0x120]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x6f9a57
mov eax, dword [str.C_TMP00_.DAT]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6f9a68
lea edi, [ebp - 0x120]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x6f9a78
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x8ad67c]
and ecx, 3
xor ebx, ebx
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x6f9be3
add eax, 0x1c
cmp byte [eax], bl
je 0x6f9be3
mov edi, dword [ebp + 8]
mov esi, eax
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x6f9acf
test al, al
je 0x6f9acb
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x6f9acf
inc esi
inc esi
inc edi
inc edi
test al, al
jne 0x6f9aad
xor eax, eax
jmp 0x6f9ad4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x6f9be3
push ebx
push 0x100
push 3
push ebx
push ebx
push connect
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x6f9bcb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x8ad67c]
cmp dword [ecx + 0x18], eax
jne 0x6f9bc1
mov edi, dword [0x813ac8]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0075c1f0
mov dword [ebp - 0xc], esp
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x6f9b5b
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.006faeef
add esp, 0xc
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push dword [0x813ac8]
push dword [ebp - 0xc]
push esi
call edi
mov eax, dword [0x813ac8]
cmp dword [ebp - 0x10], eax
je 0x6f9b3e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x8ad67c]
mov cx, word [ebp - 8]
or esi, 0xffffffff
cmp word [eax + 0x120], cx
jne 0x6f9bb8
push ebx
push 0x100
push 3
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, eax
mov eax, dword [0x8ad67c]
push ebx
push dword [eax + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x6f9bcb
mov dword [ebp - 8], 0xfbea
jmp 0x6f9bd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov eax, dword [0x8ad67c]
cmp esi, 0xffffffff
mov word [eax + 0x120], bx
mov byte [eax + 0x1c], 0
mov dword [eax + 0x18], ebx
jne 0x6f9c0f
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x6f9d22
mov eax, dword [0x8ad67c]
cmp eax, ebx
je 0x6f9c37
push 0x6f97ea
push 0x105
push dword [eax + 0xc]
add eax, 0x128
push eax
push dword [ebp + 8]
call fcn.0075f4e8
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x6f9c42
push dword [ebp + 8]
call fcn.006f968c
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x1c]
call fcn.006f9585
add esp, 0x10
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x8ad660], 0
jne 0x6f9cf6
cmp ebx, 0xffffffff
je 0x6f9cf6
mov esi, 0x8ad680
mov ecx, esi
call fcn.006f533d
mov ecx, dword [0x8ad67c]
mov eax, ebx
cdq
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
cmp edx, dword [0x813adc]
jg 0x6f9ce0
jl 0x6f9ca1
cmp eax, dword [0x813ad8]
jae 0x6f9ce0
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [0x813ae4]
jl 0x6f9ce0
jg 0x6f9cb9
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [0x813ae0]
jbe 0x6f9ce0
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
mov dword [ecx + 0x14], edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [edi + 0x104], 1
mov byte [ebp - 1], 1
jmp 0x6f9ced
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.006f5348
jmp 0x6f9d22
mov eax, dword [0x8ad67c]
mov ecx, dword [ebp + 8]
lea esi, [eax + 0x1c]
mov dword [eax + 0x18], ebx
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x6f9d06
mov cx, word [ebp - 8]
mov word [eax + 0x120], cx
mov byte [0x8ad661], 1
mov bl, byte [ebp - 1]
jmp 0x6f9d29
xor bl, bl
push 0x64
push dword [ebp - 0x1c]
call fcn.006f849e
pop ecx
pop ecx
mov al, bl
lea esp, [ebp - 0x334]
pop edi
pop esi
pop ebx
leave
ret