Function at 0x65cc90
Capabilities:
Move file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x19c
mov ebx, dword [0x8dcfac]
mov dword [esp + 4], 0x7adfe4
mov dword [esp], 0x8dcea0
call sub.msvcrt.dll_fopen
mov dword [esp + 4], 0x8dcea0
mov edi, eax
lea eax, [esp + 0x8c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [esp + 0x8c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, 0x7e
mov word [esp + eax + 0x89], cx
lea eax, [esp + 0x8c]
mov dword [esp + 4], 0x7adfe6
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x65cea9
mov esi, eax
test ebx, ebx
je 0x65cdda
mov edx, eax
mov esi, ebx
jmp 0x65cd2e
mov esi, dword [esi + 0xa0]
test esi, esi
je 0x65cdd8
mov eax, dword [esi + 0x9c]
test eax, eax
js 0x65cd20
mov dword [esp + 8], 0
mov eax, dword [esi]
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_fseek
xor eax, eax
cmp dword [esi + 0x9c], 2
mov edx, dword [esp + 0x1c]
je 0x65ced0
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x65ceb8
mov ebx, dword [ecx]
sub ebx, dword [esi]
sub ebx, eax
je 0x65cf73
mov dword [esp + 0x1c], esi
mov esi, ebx
mov ebx, edx
jmp 0x65cdb0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fputc
xor ecx, ecx
cmp ebp, 0xa
mov eax, esi
setne cl
mov esi, ecx
lea esi, [esi + eax - 2]
test esi, esi
je 0x65cdbf
mov dword [esp], edi
call sub.msvcrt.dll_fgetc
mov ebp, eax
cmp eax, 0xffffffff
jne 0x65cd90
mov esi, dword [esp + 0x1c]
mov edx, ebx
mov esi, dword [esi + 0xa0]
test esi, esi
jne 0x65cd2e
lea esi, [esi]
nop
mov esi, edx
mov edx, dword [esp + 0x1b4]
test edx, edx
je 0x65ce6c
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll_time]
mov dword [esp + 4], 0x7adfe8
mov ebx, eax
mov eax, dword [esp + 0x1b0]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0065ca70
mov eax, dword [esp + 0x1b4]
mov dword [esp], eax
call fcn.0066c660
mov dword [esp + 4], 0x7adff2
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0065ca70
mov dword [esp + 8], ebx
mov dword [esp + 4], str.__lu_n
mov dword [esp], esi
call fcn.0065ca70
mov eax, dword [0x8dce98]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [0x8dce90]
mov dword [esp + 4], 0x7ae007
mov dword [esp], esi
call fcn.0065ca70
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 0x8dcea0
call sub.msvcrt.dll__unlink
lea eax, [esp + 0x8c]
mov dword [esp + 4], 0x8dcea0
mov dword [esp], eax
call sub.msvcrt.dll_rename
mov dword [0x8dce8c], 0
add esp, 0x19c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x3b9aca00
mov dword [esp + 0x1c], esi
mov esi, ebx
mov ebx, edx
jmp 0x65cdb0
lea eax, [esi + 4]
mov dword [esp], edx
lea ebx, [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x7adfe8
call fcn.0065ca70
mov edx, dword [esp + 0x1c]
lea eax, [esi + 0x35]
mov dword [esp + 4], 0x7adff2
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.0065ca70
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x98]
mov dword [esp + 4], str.__lu_n
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.0065ca70
mov dword [esp + 8], edi
mov dword [esp + 4], 0x63
mov dword [esp], ebx
call sub.msvcrt.dll_fgets
mov dword [esp + 8], edi
mov dword [esp + 4], 0x63
mov dword [esp], ebx
call sub.msvcrt.dll_fgets
mov dword [esp + 8], edi
mov dword [esp + 4], 0x63
mov dword [esp], ebx
call sub.msvcrt.dll_fgets
mov dword [esp], edi
call sub.msvcrt.dll_ftell
mov edx, dword [esp + 0x1c]
sub eax, dword [esi]
jmp 0x65cd65
mov esi, ecx
jmp 0x65cd2e