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

Disassembly:
jmp 0x4716c0
push 0xffffffffffffffff
push 0x555b58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x40]
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4718a7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
sub edi, ebx
mov dword [esp + 0x28], eax
je 0x471788
push 0
push 0x40
push str.Extra_data_found_at_the_end_of_the_file._______n
call fcn.004b468e
push edi
call fcn.004f53cf
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x4718a5
push 0
push 0
push ebx
push esi
call ebp
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [esp + 0x20]
jne 0x471894
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
push 0
push 0
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x47188b
cmp dword [esp + 0x28], 0
je 0x47188b
mov ecx, dword [ebx + 0x14]
push 0
push 0
push ecx
push esi
call ebp
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x471833
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x471894
xor ebp, ebp
cmp dword [ebx + 0x10], ebp
jle 0x471863
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push edx
push 1
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], 1
jne 0x471894
add ebp, 1
cmp ebp, dword [ebx + 0x10]
jl 0x4717f4
jmp 0x471863
xor ebp, ebp
cmp dword [ebx + 0x10], ebp
jle 0x471863
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x58]
push edx
push esi
mov byte [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], 1
jne 0x471894
add ebp, 1
cmp ebp, dword [ebx + 0x10]
jl 0x47183a
test edi, edi
jbe 0x471881
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [esp + 0x14]
jne 0x471894
mov dword [esp + 0x24], 1
jmp 0x471894
mov ecx, dword [esp + 0x2c]
call fcn.00402a27
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4718a5
push eax
call fcn.004b14fa
add esp, 4
xor ebx, ebx
cmp esi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4718b4
push esi
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4718bf
push eax
call edi
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.00402798
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10