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

Disassembly:
push 0x64
mov eax, 0x1009a5e8
call fcn.10076884
mov eax, dword [ebp + 8]
lea esi, [eax + 8]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x54], eax
jb 0x100281b5
mov eax, dword [esi]
jmp 0x100281b7
mov eax, esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, 0xffffffff
jne 0x1002820e
cmp dword [esi + 0x14], 8
jb 0x100281e1
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DataReport::LoadPacketData__Read__s_failed__error_u_
push 4
push 0x72
push str.Report::TransportMgr::LoadPacketData
push str.TransportMgr.cpp
push 2
call fcn.1004a86e
add esp, 0x20
or eax, 0xffffffff
jmp 0x10028521
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10028251
cmp dword [esi + 0x14], 8
jb 0x10028225
mov esi, dword [esi]
push esi
push str.DataReport::LoadPacketData__Read__s_success__but_the_file_is_empty_
push 4
push 0x79
push str.Report::TransportMgr::LoadPacketData
push str.TransportMgr.cpp
push 2
call fcn.1004a86e
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10028521
cmp dword [esi + 0x14], 8
jb 0x10028259
mov esi, dword [esi]
push eax
push esi
push str.DataReport::LoadPacketData__Read__s_success__filesize___u
push 4
push 0x7e
push str.Report::TransportMgr::LoadPacketData
push str.TransportMgr.cpp
push 2
call fcn.1004a86e
add esp, 0x20
push ebx
push ebx
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call edi
lea esi, [ebp - 0x70]
call fcn.1002903e
push ebx
mov dword [ebp - 4], ebx
call fcn.1005d50b
pop ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], ebx
jmp 0x100283a1
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
sar eax, 2
cmp eax, dword [ebp + 0xc]
jae 0x100283ab
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0x10
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100283ab
cmp dword [ebp - 0x3c], 0x10
jne 0x100283ab
mov edx, dword [ebp - 0x20]
cmp edx, 0x5000
ja 0x100283ab
lea eax, [edx + 0x10]
cmp dword [ebp - 0x34], eax
jb 0x100283ab
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
add ecx, 0x15180
adc eax, ebx
cmp dword [ebp - 0x58], eax
jg 0x1002838f
jl 0x1002831e
cmp dword [ebp - 0x5c], ecx
ja 0x1002838f
push ebx
lea eax, [ebp - 0x3c]
push eax
push edx
push dword [ebp - 0x70]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100283ab
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x20]
jne 0x100283ab
push 0x20
call fcn.1005d0ec
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10028356
push 2
pop eax
call fcn.10027d01
mov esi, eax
jmp 0x10028358
xor esi, esi
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x70]
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], esi
call fcn.10027d24
test al, al
je 0x10028388
lea eax, [ebp - 0x40]
lea esi, [ebp - 0x50]
call fcn.10029092
jmp 0x10028398
call fcn.100278a2
jmp 0x10028398
push 1
push ebx
push edx
push dword [ebp - 0x30]
call edi
push 0xfffffffffffffff0
pop eax
sub eax, dword [ebp - 0x20]
add dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x10
ja 0x100282b1
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
sar eax, 2
cmp eax, dword [ebp + 0xc]
jne 0x1002848a
cmp dword [ebp - 0x34], ebx
jbe 0x1002848a
push dword [ebp - 0x34]
mov byte [ebp - 0x35], 1
mov byte [ebp - 4], 2
call fcn.1005ebe9
pop ecx
mov esi, eax
mov dword [ebp - 4], 1
jmp 0x100283fd
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x58], ebx
cmp byte [ebp - 0x35], bl
je 0x1002845f
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x34]
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002845f
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x40], eax
jne 0x1002845f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call edi
push ebx
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x34]
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x34]
push str.DataReport::LoadPacketData__Change_file_success__new_filesize___u
push 4
push 2
call fcn.1004a855
add esp, 0x10
jmp 0x10028481
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.DataReport::LoadPacketData__Change_file_failed__Clear_file
push 4
push 2
call fcn.1004a855
add esp, 0xc
push esi
call fcn.1005c822
pop ecx
jmp 0x100284ac
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.DataReport::LoadPacketData__Clear_file
push 4
push 2
call fcn.1004a855
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x4c]
sub esi, dword [ebp - 0x50]
sar esi, 2
cmp esi, ebx
jle 0x100284d3
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
cmp edx, ebx
je 0x100284d3
lea ecx, [ebp - 0x50]
call fcn.10027955
mov eax, dword [ebp - 0x54]
add eax, 8
cmp dword [eax + 0x14], 8
jb 0x100284e1
mov eax, dword [eax]
push esi
push eax
push str.DataReport::LoadPacketData__Read__s_success__get__d_records_
push 4
push 0xe0
push str.Report::TransportMgr::LoadPacketData
push str.TransportMgr.cpp
push 2
call fcn.1004a86e
add esp, 0x20
cmp dword [ebp - 0x50], ebx
je 0x10028511
push dword [ebp - 0x50]
call fcn.1005c756
pop ecx
cmp dword [ebp - 0x70], ebx
je 0x1002851f
push dword [ebp - 0x70]
call fcn.1005c756
pop ecx
mov eax, esi
call fcn.100768e0
ret 8