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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x1028f57
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x1028f57
cmp dword [eax + 0x4c], edi
jne 0x1028d2b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
jmp 0x1028f61
mov ecx, dword [esi + 0xc]
cmp ecx, edi
je 0x1028f57
mov ebx, dword [eax + 0x20]
sub ebx, 0x1060
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x80000000
cmp dword [0x1034fb4], edi
je 0x1028d58
mov dword [ebp - 0x14], 0x82000000
cmp ebx, edi
jne 0x1028dab
mov ebx, dword [esi + 8]
cmp ebx, edi
je 0x1028d68
cmp ebx, 0xffffffff
jne 0x1028d82
push dword [ebp - 0x14]
push edi
push 0x40000000
push ecx
call fcn.0101dbcd
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1028f5f
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x1060
push dword [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp ebx, dword [esi + 8]
je 0x1028da4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1028f61
push 5
push 0x1028cd6
push edi
push 0x10000
call fcn.0102ff40
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x1028f52
push edi
push ebx
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x1028f44
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1028f3b
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 0x1028ebd
mov dword [ebp - 8], 0x5c
cmp dword [ebp - 8], 0x105c
jae 0x1028f30
cmp ebx, dword [ebp - 4]
jb 0x1028f30
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
mov dword [ebp + 8], eax
cmp edi, eax
ja 0x1028e6b
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 - 0x24]
call fcn.0102fcf0
test eax, eax
jle 0x1028f30
cmp eax, dword [ebp + 8]
jb 0x1028ea5
push dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.msvcrt.dll_memcpy
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 0x1028e2e
jmp 0x1028ec0
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1028ed2
cmp eax, 0xffffffff
jne 0x1028ee4
push dword [ebp - 0x14]
push 0
push 0x40000000
push dword [esi + 0xc]
call fcn.0101dbcd
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1028f30
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x1060
push dword [esi + 0x10]
push dword [ebp + 8]
call edi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1028f21
sub ebx, dword [ebp - 4]
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp + 8]
call edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
je 0x1028f30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x102d29d
push edi
push dword [ebp - 0x24]
call fcn.01030000
mov eax, dword [ebp - 0x18]
jmp 0x1028f61
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4