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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5044
call fcn.0043ced0
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [eax + 0x14], 8
jb 0x448b87
mov eax, dword [eax]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
push 0x461a0c
push eax
lea eax, [ebp - 0x5008]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x448dbb
cmp dword [ebp - 0x5008], eax
je 0x448dbb
cmp dword [esi + 0x14], 8
jb 0x448bbb
mov esi, dword [esi]
push 0x461a2c
lea eax, [ebp - 0x500c]
push esi
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x448d8d
cmp dword [ebp - 0x500c], eax
je 0x448d8d
push 0x38
push str.1.3.1
mov dword [ebp - 0x5024], eax
mov dword [ebp - 0x5020], eax
mov dword [ebp - 0x501c], eax
lea eax, [ebp - 0x5044]
push 9
push eax
call fcn.00450960
add esp, 0x10
test eax, eax
je 0x448c47
push str.Failed_to_initialize_compression_stream
call fcn.004046d0
push dword [ebp - 0x5008]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
push dword [ebp - 0x500c]
call esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop word [eax + eax]
push dword [ebp - 0x5008]
lea eax, [ebp - 0x2804]
push 0x2800
push 1
push eax
call ebx
mov dword [ebp - 0x5040], eax
add esp, 0x10
lea eax, [ebp - 0x2804]
mov dword [ebp - 0x5044], eax
nop dword [eax + eax]
push dword [ebp - 0x5008]
lea eax, [ebp - 0x5004]
mov dword [ebp - 0x5034], 0x2800
mov dword [ebp - 0x5038], eax
call edi
neg eax
sbb eax, eax
and eax, 4
push eax
lea eax, [ebp - 0x5044]
push eax
call fcn.0044fd20
add esp, 0xc
cmp eax, 0xfffffffe
je 0x448d48
push dword [ebp - 0x500c]
mov eax, 0x2800
sub eax, dword [ebp - 0x5034]
push eax
lea eax, [ebp - 0x5004]
push 1
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x5034], 0
je 0x448c90
push dword [ebp - 0x5008]
call edi
add esp, 4
test eax, eax
je 0x448c60
lea eax, [ebp - 0x5044]
push eax
call fcn.00450630
push dword [ebp - 0x5008]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
push dword [ebp - 0x500c]
call esi
push str.Compression_success
call fcn.004046d0
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push str.Compression_error
call fcn.004046d0
lea eax, [ebp - 0x5044]
push eax
call fcn.00450630
push dword [ebp - 0x5008]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
push dword [ebp - 0x500c]
call esi
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push str.Cannot_open_output_file
call fcn.004046d0
push dword [ebp - 0x5008]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push str.Cannot_open_input_file
call fcn.004046d0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.0040219c
mov esp, ebp
pop ebp
ret