Function at 0x102ccb6
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x102ceaa
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x102ceaa
cmp dword [eax + 0x4c], edi
jne 0x102ccea
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
jmp 0x102ceb4
cmp dword [esi + 0xc], edi
je 0x102ceaa
push ebx
mov ebx, dword [eax + 0x20]
sub ebx, 0x1060
cmp dword [0x1042400], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x80000000
je 0x102cd16
mov dword [ebp - 0x18], 0x82000000
push 5
push 0x103808b
push edi
push 0x10000
call fcn.0103bf70
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x102cea4
push edi
push ebx
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x102ce96
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x102ce8d
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x20]
sub edi, 0x1060
mov dword [eax + 0x54], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], ebx
mov dword [eax + 0x50], 0x10000
je 0x102ce28
mov dword [ebp - 8], 0x5c
cmp dword [ebp - 8], 0x105c
jae 0x102ce82
cmp ebx, dword [ebp - 4]
jb 0x102ce82
mov eax, dword [esi + 0x10]
inc dword [eax + 0x54]
mov edx, dword [ebp - 8]
mov ecx, dword [esi + 0x10]
add dword [ebp - 8], 4
mov eax, ebx
sub eax, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 0x10000
cmp edi, eax
mov dword [ebp + 8], eax
ja 0x102cdd6
mov dword [ebp + 8], edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call fcn.0103bd20
test eax, eax
jle 0x102ce82
cmp eax, dword [ebp + 8]
jb 0x102ce10
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.01017c20
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp + 8]
add dword [ebp - 0xc], ecx
sub dword [ebp - 4], eax
add dword [ebp - 0x10], eax
sub edi, ecx
test edi, edi
ja 0x102cd99
jmp 0x102ce2b
mov eax, dword [ebp + 8]
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
push 0
push 0x40000000
mov dword [ecx + 0x58], eax
push dword [esi + 0xc]
call fcn.0102341b
mov edi, eax
cmp edi, 0xffffffff
je 0x102ce82
push 0
lea eax, [ebp - 0x24]
push eax
push 0x1060
push dword [esi + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x102ce7b
sub ebx, dword [ebp - 4]
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x1c]
push edi
call esi
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10380ab
push edi
push dword [ebp - 0x20]
call fcn.0103c030
mov eax, dword [ebp - 0x14]
pop ebx
jmp 0x102ceb4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4