Function at 0x5a5420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x695b10
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [esp + 0xac]
movzx eax, byte [esi + 0x121]
push eax
push str.deflateFromSource
push esi
lea ecx, [esp + 0x48]
call fcn.004b1880
xor ebp, ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
call fcn.005d4950
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x90], 1
call fcn.005d4880
test al, al
je 0x5a54f2
lea ecx, [esp + 0x30]
call fcn.004afde0
push 0x8004
mov byte [esp + 0x8c], 2
call fcn.0047e520
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x24], edi
jne 0x5a5530
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_allocated_deflate_buffer
mov ecx, esi
call edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 1
call fcn.004afe20
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], 0
call fcn.005d4990
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], 0xffffffff
call fcn.004b18c0
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], edi
call fcn.004afde0
push 0x8004
mov byte [esp + 0x8c], 3
call fcn.0047e520
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x5a557c
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_allocated_deflate_buffer
mov ecx, esi
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
cmp byte [esp + 0x90], 0
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x50], ebx
je 0x5a55c4
mov ecx, dword [esp + 0x98]
push esi
push ebp
push 2
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x28], 0x78
mov byte [esp + 0x29], 0x9c
call fcn.005340e0
test al, al
je 0x5a5566
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0
push esi
push 0x7530
push ebp
lea ecx, [esp + 0x23]
push ecx
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x30]
push edx
push 0x8000
push edi
mov dword [esp + 0x3c], 0
mov byte [esp + 0x33], 0
call fcn.00542890
test al, al
jne 0x5a561c
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_read_1st_chunk_for_deflate
mov ecx, esi
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
cmp byte [esi + 0x121], 0
je 0x5a5636
mov eax, dword [esp + 0x20]
push eax
push str.firstChunkNumBytes
mov ecx, esi
call fcn.004b14c0
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
je 0x5a577a
lea ecx, [esp + 0x18]
push ecx
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x20], 0
call fcn.005d4ad0
mov edi, 0x8000
sub edi, dword [esp + 0x78]
je 0x5a5693
mov ecx, dword [esp + 0x98]
push esi
push ebp
push edi
push ebx
call fcn.005340e0
test al, al
je 0x5a56f7
add dword [esp + 0x28], edi
adc dword [esp + 0x2c], 0
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
je 0x5a56b0
push esi
call fcn.004d0e20
test al, al
jne 0x5a571b
cmp dword [esp + 0x6c], 0
jne 0x5a5656
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x94]
push esi
push 0x7530
push ebp
lea edx, [esp + 0x23]
push edx
lea eax, [esp + 0x30]
push eax
push 0x8000
push edi
call fcn.00542890
test al, al
je 0x5a573f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5a5763
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
jmp 0x5a5656
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_write_compressed_data_to_output_file.
mov ecx, esi
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Deflate_file_aborted_by_application
mov ecx, esi
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_read_Nth_chunk_for_file_deflate
mov ecx, esi
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
cmp byte [esi + 0x121], 0
je 0x5a577a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.End_of_data_source.
mov ecx, esi
call eax
xor eax, eax
cmp byte [esi + 0x121], al
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
je 0x5a57a6
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.Finalizing_compressed_output...
mov ecx, esi
call eax
mov byte [esp + 0xac], 0
lea ecx, [esp + 0xac]
push ecx
push 1
lea ecx, [esp + 0x5c]
call fcn.005d4ad0
mov edi, 0x8000
sub edi, dword [esp + 0x78]
cmp byte [esi + 0x121], 0
je 0x5a57f5
push edi
push str.outputChunkSize
mov ecx, esi
call fcn.004b14c0
movzx edx, byte [esp + 0xac]
push edx
push str.outputComplete
mov ecx, esi
call fcn.004b14c0
test edi, edi
je 0x5a581a
mov ecx, dword [esp + 0x98]
push esi
push ebp
push edi
push ebx
call fcn.005340e0
test al, al
je 0x5a58fe
add dword [esp + 0x28], edi
adc dword [esp + 0x2c], 0
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
je 0x5a583b
push esi
call fcn.004d0e20
test al, al
jne 0x5a5922
cmp byte [esp + 0xac], 0
je 0x5a57ae
cmp byte [esp + 0x90], 0
je 0x5a5950
call fcn.004b10e0
cmp byte [esi + 0x121], 0
mov ecx, dword [esp + 0x64]
mov bl, al
mov dword [esp + 0x1c], ecx
je 0x5a5892
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Adding_adler_checksum.
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
push eax
push str.adlerChecksum
mov ecx, esi
call fcn.004b1610
mov ecx, dword [esp + 0x1c]
test bl, bl
lea eax, [esp + 0x1c]
je 0x5a58c5
mov al, byte [esp + 0x1e]
mov dl, byte [esp + 0x1f]
mov byte [esp + 0x91], al
mov byte [esp + 0x90], dl
mov byte [esp + 0x92], ch
mov byte [esp + 0x93], cl
lea eax, [esp + 0x90]
mov ecx, dword [esp + 0x98]
push esi
push ebp
push 4
push eax
call fcn.005340e0
test al, al
jne 0x5a5946
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_write_adler_checksum.
mov ecx, esi
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_write_compressed_data_to_output.__2_
mov ecx, esi
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push str.Deflate_file_aborted_by_application__2_
mov ecx, esi
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
jmp 0x5a54e1
add dword [esp + 0x28], 4
adc dword [esp + 0x2c], 0
cmp byte [esi + 0x121], 0
je 0x5a596f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push str.outputByteCount
mov ecx, esi
call fcn.004b15a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004afe20
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 1
call fcn.004afe20
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], 0
call fcn.005d4990
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], 0xffffffff
call fcn.004b18c0
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret