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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101f3540]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100a675d
xor al, al
jmp 0x100a6940
mov esi, esp
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x100a6795
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
xor al, al
jmp 0x100a6940
mov eax, dword [ebp - 0xc]
push eax
call fcn.100f05e0
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.100f3210
test eax, eax
jne 0x100a67ed
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
mov edx, dword [ebp - 0x10]
push edx
call fcn.100f0630
add esp, 4
xor al, al
jmp 0x100a6940
mov dword [ebp - 0x44], 0x3e8
lea eax, [ebp - 0x44]
push eax
push 0x95e97e5e
push 0x4671ae97
lea ecx, [ebp - 0x28]
call fcn.1009d930
nop
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100a5fb0
add esp, 8
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100a5800
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x100a6899
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.100a69a0
add esp, 8
mov dword [ebp - 0x38], eax
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.100f3210
cmp eax, 0xffffffff
je 0x100a6897
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 0x30], eax
jmp 0x100a6900
mov ecx, dword [ebp + 0xc]
call fcn.100a2340
add eax, 0x2c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
call fcn.100f4610
mov dword [ebp - 0x5c], esp
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
call fcn.100f3090
add dword [ebp - 0x5c], 0x20
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.100a69a0
add esp, 8
mov dword [ebp - 0x40], eax
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
mov dword [ebp - 0x30], eax
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
mov eax, dword [ebp - 0x10]
push eax
call fcn.100f0630
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x100a692b
mov byte [ebp - 0x5d], 1
jmp 0x100a692f
mov byte [ebp - 0x5d], 0
mov cl, byte [ebp - 0x5d]
mov byte [ebp - 0x45], cl
lea ecx, [ebp - 0x28]
call fcn.100a0d80
mov al, byte [ebp - 0x45]
push edx
mov ecx, ebp
push eax
lea edx, [0x100a6968]
push dword [ebp - 0x50]
call fcn.100f30d0
pop eax
pop edx
lea esp, [ebp - 0x68]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f3240
mov esp, ebp
pop ebp
ret