Function at 0x102f6970
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1035ca40
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov bl, byte [ebp + 8]
test bl, bl
je 0x102f69c5
mov ecx, dword [edi + 0x9c]
test ecx, ecx
je 0x102f69c5
mov eax, dword [ecx]
push dword [edi + 0xa0]
call dword [eax + 4]
lea esi, [edi + 4]
mov dword [esp + 0x4c], esi
test esi, esi
je 0x102f69dd
mov eax, dword [esi]
test eax, eax
je 0x102f69dd
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x60], 0
test bl, bl
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
je 0x102f6c27
push 0
push 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.102f7260
mov edx, eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x60], 3
lea ecx, [edi + 0x10]
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x102f6a38
mov eax, dword [ecx]
mov dword [ecx], edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x60], 4
lea ecx, [esp + 0x18]
call fcn.102f7220
mov byte [esp + 0x60], 0
push dword [esp + 0x18]
call ebx
add esp, 4
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.102f6d60
mov byte [esp + 0x60], 6
cmp dword [edi + 0x1c], 0
jbe 0x102f6bf6
cmp dword [esp + 0x38], 0
je 0x102f6bf6
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
push 0
cmovae eax, dword [esp + 0x2c]
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x102f6bf0
test ebx, ebx
je 0x102f6bf0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [edi + 0x1c]
cmp eax, edx
mov dword [esp + 0x14], eax
sete cl
cmp eax, edx
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esp + 0x12], cl
jbe 0x102f6bb9
push 0
push 0
push edx
push ebx
call eax
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
sub eax, dword [edi + 0x1c]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov byte [esp + 0x60], 7
lea ecx, [esp + 0x13]
push ecx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1b], 0
call fcn.100e38a0
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x102f6b9d
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x20], eax
jne 0x102f6b9d
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x102f6b9d
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], eax
jne 0x102f6ba2
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x102f6ba2
mov byte [esp + 0x12], 1
mov byte [esp + 0x60], 6
lea ecx, [esp + 0x40]
call fcn.100cd760
mov cl, byte [esp + 0x12]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test cl, cl
je 0x102f6bcd
push 0
push 0
push 0
push ebx
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x12], 0
je 0x102f6bf0
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [esp + 0x60], 0
cmp dword [esp + 0x3c], 8
jb 0x102f6c0b
push dword [esp + 0x28]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jmp 0x102f6ca9
cmp dword [edi + 0x14], 0
je 0x102f6ca9
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
push eax
lea ecx, [edi + 8]
push dword [eax]
lea eax, [esp + 0x20]
push dword [ecx]
push eax
call fcn.102f7310
push 0
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.102f7260
mov ecx, eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x60], 0xa
lea eax, [esp + 0x20]
cmp ebx, eax
je 0x102f6c87
mov eax, dword [ebx]
mov dword [ebx], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 4], 0
mov dword [esp + 0x24], eax
mov byte [esp + 0x60], 0xb
lea ecx, [esp + 0x20]
call fcn.102f7220
mov byte [esp + 0x60], 0
push dword [esp + 0x20]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call ebx
add esp, 4
mov eax, dword [edi + 0x18]
test eax, eax
je 0x102f6d10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
mov dword [edi + 0x18], 0
push eax
mov ecx, edi
call fcn.102f6e60
mov byte [esp + 0x60], 0xd
lea eax, [esp + 0x28]
cmp dword [esp + 0x3c], 8
cmovae eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x60], 0
cmp dword [esp + 0x3c], 8
jb 0x102f6cf9
push dword [esp + 0x28]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov dword [edi + 0x1c], 0
mov dword [esp + 0x60], 0xffffffff
test esi, esi
je 0x102f6d38
mov eax, dword [esi]
test eax, eax
je 0x102f6d30
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret 4