Function at 0x1001aba0
Capabilities:
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0xc800
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov dword [ebp - 0x18], edi
mov ecx, 0x3200
xor eax, eax
mov edi, ebx
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
shr eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
push eax
push ecx
push edx
lea eax, [ebp - 0x14]
push str._BeginChat__r_n_s__s__s__r_n
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x38]
add esp, 0x14
test eax, eax
jne 0x1001ac39
push 0x61
mov ecx, esi
call fcn.1001a350
test eax, eax
je 0x1001ad55
xor edi, edi
mov edx, dword [ebp - 0x20]
cmp edi, edx
jge 0x1001ad8f
mov eax, dword [ebp + 0xc]
dec edx
cmp edi, edx
mov ecx, dword [eax + edi*4]
jne 0x1001ac56
mov eax, dword [ebp + 0x10]
jmp 0x1001ac5a
mov eax, dword [eax + edi*4 + 4]
mov edx, dword [ebp + 8]
sub eax, ecx
add ecx, edx
cmp eax, 0xc800
ja 0x1001ad89
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
push edx
lea edx, [esi + 0xc]
push ebx
push edx
push eax
push ecx
mov dword [ebx], 0
call fcn.1001cc80
add esp, 0x14
test eax, eax
jl 0x1001ad89
mov eax, dword [ebx]
mov ecx, dword [esi + 8]
cmp eax, ecx
jle 0x1001ad89
cmp eax, dword [esi + 4]
jle 0x1001aca5
mov dword [esi + 4], eax
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x18]
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 2
push eax
push ecx
push edx
push ebx
mov ecx, esi
call fcn.1001a9b0
test eax, eax
jne 0x1001ad7d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001acef
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x38]
push eax
call fcn.1000ed60
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esi + 0x38]
push eax
push ecx
call fcn.1000ed60
mov edx, dword [esi + 0x38]
add esp, 0xc
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x19000
jbe 0x1001ad7d
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push eax
push ecx
mov dword [esi + 0x38], 0
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
test eax, eax
jne 0x1001ad49
push 0x61
mov ecx, esi
call fcn.1001a350
test eax, eax
jne 0x1001ad76
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [ebp - 0x1c], 1
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
inc edi
jmp 0x1001ac3b
test ebx, ebx
je 0x1001ad9c
push ebx
call fcn.10010220
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14