Function at 0x430e40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
push 0x8000
call fcn.004a39a0
mov dword [esp], 0x8000
mov esi, eax
call fcn.004a39a0
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x430f03
test eax, eax
je 0x430f03
lea eax, [ebp - 0x44]
mov ecx, 0xe
mov dword [ebp - 0x58], eax
xor eax, eax
cld
mov edi, dword [ebp - 0x58]
lea edx, [ebp - 0x44]
rep stosd dword es:[edi], eax
push 0x38
mov dword [ebp - 0x24], 0
push 0x4b38aa
mov dword [ebp - 0x20], 0
push 0
mov dword [ebp - 0x1c], 0
push 8
mov dword [ebp - 0x44], 0
push 0xfffffffffffffff1
mov dword [ebp - 0x40], 0
push 8
mov dword [ebp - 0x38], ebx
push 9
mov dword [ebp - 0x34], 0x8000
push edx
mov dword [ebp - 0x18], 2
call fcn.00478a60
add esp, 0x20
test eax, eax
je 0x430f32
cmp eax, 0xfffffffa
je 0x431033
push eax
push str.Call_to_deflateInit2_failed__zerr_d__n
push 0x4b3720
push 3
call fcn.0044c320
mov edi, 0x80000000
add esp, 0x10
jmp 0x430f08
mov edi, 0xfffffff4
test esi, esi
je 0x430f18
sub esp, 0xc
push esi
call fcn.004a3970
add esp, 0x10
test ebx, ebx
je 0x430f28
sub esp, 0xc
push ebx
call fcn.004a3970
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push 0
push 0
push 0
call fcn.0047ae90
add esp, 0x10
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], 0
jmp 0x430f61
cmp edi, 1
je 0x431056
test edi, edi
jne 0x43105d
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x430fd0
cmp byte [ebp - 0x51], 0
jne 0x430fd8
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x43107b
mov edi, dword [ebp + 0x18]
cmp edi, 0x8000
jbe 0x430f89
mov edi, 0x8000
mov edx, dword [ebp + 0x14]
push ecx
push edi
push edx
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0x10
add eax, edi
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x18]
sub eax, edi
mov dword [ebp + 0x18], eax
push eax
mov eax, dword [ebp - 0x50]
push edi
cmp edi, 0x7fff
push esi
setbe byte [ebp - 0x51]
push eax
call fcn.0047ae90
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], edi
add esp, 0x10
lea esi, [esi]
xor eax, eax
cmp byte [ebp - 0x51], 0
je 0x430fdd
mov eax, 4
lea edx, [ebp - 0x44]
push ecx
push ecx
push eax
push edx
call fcn.004799c0
add esp, 0x10
mov edi, eax
cmp eax, 1
ja 0x4310be
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x430f50
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 0xc]
sub eax, ebx
push edx
push eax
push 1
push ebx
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp - 0x38]
add esp, 0x10
sub edx, ebx
cmp eax, edx
jne 0x4310da
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x8000
jmp 0x430f59
push 0x4b38aa
push 0x4b38b0
push 0x4b3720
push 6
call fcn.0044c320
mov edi, 0x80000000
add esp, 0x10
jmp 0x430f08
cmp eax, 0x8000
jne 0x431002
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x50]
xor edi, edi
mov dword [eax], edx
sub esp, 0xc
lea eax, [ebp - 0x44]
push eax
call fcn.00478060
add esp, 0x10
jmp 0x430f08
mov eax, dword [ebp + 0x10]
push eax
push 0x8000
push 1
push esi
call sub.msvcrt.dll_fread
add esp, 0x10
mov edi, eax
mov eax, dword [ebp + 0x10]
test byte [eax + 0xc], 0x20
je 0x430fa8
call sub.msvcrt.dll__errno
mov eax, dword [eax]
push eax
push str.deflate_read_failed__errno_d__n
push 0x4b3720
push 3
call fcn.0044c320
xor edi, edi
add esp, 0x10
jmp 0x431067
push eax
push str.zlib_deflate_call_failed__zerr_d__n
push 0x4b3720
push 3
call fcn.0044c320
mov edi, 0x80000000
add esp, 0x10
jmp 0x431067
push edx
push str.write__d_failed_in_deflate_n
jmp 0x4310ab