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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
lea edi, [ebp - 0x70]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101f3540]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], 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 0x100a58fd
xor al, al
jmp 0x100a5b4a
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 0x100a5935
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 0x100a5b4a
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 0x100a598d
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 0x100a5b4a
mov dword [ebp - 0x58], 0x3e8
lea eax, [ebp - 0x58]
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], 0x101f8dbc
mov ecx, dword [ebp - 0x30]
call fcn.100a7a10
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
call fcn.100a7aa0
mov dword [ebp - 0x38], eax
jmp 0x100a59e3
mov eax, dword [ebp - 0x34]
add eax, 0x14
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
je 0x100a5b1c
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
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 - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x100a5b07
lea ecx, [ebp - 0x28]
call fcn.1009ded0
cmp dword [eax], 0x3e8
jge 0x100a5afd
mov esi, esp
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.100f3210
cmp eax, 0xffffffff
je 0x100a5afb
mov ecx, dword [ebp - 0x3c]
call fcn.100a2340
add eax, 0x2c
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
call fcn.100f4610
mov dword [ebp - 0x70], esp
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
call fcn.100f3090
add dword [ebp - 0x70], 0x20
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.100a69a0
add esp, 8
mov dword [ebp - 0x48], eax
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
nop
mov esi, esp
push 0
push 0
push 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.100f3210
cmp eax, 0xffffffff
je 0x100a5afb
mov dword [ebp - 0x50], 0x3e8
mov esi, esp
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.100a2340
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.100f3210
nop
jmp 0x100a5b02
xor edx, edx
jne 0x100a5b02
int3
jmp 0x100a59da
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.100a5fb0
add esp, 8
jmp 0x100a59da
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100f3210
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100f0630
add esp, 4
mov byte [ebp - 0x59], 1
lea ecx, [ebp - 0x28]
call fcn.100a0d80
mov al, byte [ebp - 0x59]
push edx
mov ecx, ebp
push eax
lea edx, [0x100a5b74]
push dword [ebp - 0x64]
call fcn.100f30d0
pop eax
pop edx
lea esp, [ebp - 0x78]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f3240
mov esp, ebp
pop ebp
ret