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

Disassembly:
push 0xffffffffffffffff
push 0x57f1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
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.00437770
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.0054f0a0
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.0054efd0
test al, al
je 0x506bf2
lea ecx, [esp + 0x30]
call fcn.004396b0
push 0x8004
mov byte [esp + 0x8c], 2
call fcn.004144e0
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
cmp edi, ebp
jne 0x506c30
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.004396f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], 0
call fcn.0054f0e0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], 0xffffffff
call fcn.004377b0
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.004396b0
push 0x8004
mov byte [esp + 0x8c], 3
call fcn.004144e0
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x506c7c
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.004396f0
jmp 0x506be1
cmp byte [esp + 0x90], 0
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x50], ebx
je 0x506cc4
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.004735a0
test al, al
je 0x506c66
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.004f36b0
test al, al
jne 0x506d1c
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.004396f0
jmp 0x506be1
cmp byte [esi + 0x121], 0
je 0x506d36
mov eax, dword [esp + 0x20]
push eax
push str.firstChunkNumBytes
mov ecx, esi
call fcn.004373b0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
test eax, eax
je 0x506e7a
lea ecx, [esp + 0x18]
push ecx
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x20], 0
call fcn.0054f220
mov edi, 0x8000
sub edi, dword [esp + 0x78]
je 0x506d93
mov ecx, dword [esp + 0x98]
push esi
push ebp
push edi
push ebx
call fcn.004735a0
test al, al
je 0x506df7
add dword [esp + 0x28], edi
adc dword [esp + 0x2c], 0
mov ecx, dword [ebp + 4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
test ecx, ecx
je 0x506db0
push esi
call fcn.00485430
test al, al
jne 0x506e1b
cmp dword [esp + 0x6c], 0
jne 0x506d56
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.004f36b0
test al, al
je 0x506e3f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x506e63
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
jmp 0x506d56
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.004396f0
jmp 0x506be1
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.004396f0
jmp 0x506be1
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.004396f0
jmp 0x506be1
cmp byte [esi + 0x121], 0
je 0x506e7a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push str.End_of_data_source.
mov ecx, esi
call eax
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
cmp byte [esi + 0x121], al
je 0x506ea6
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.0054f220
mov edi, 0x8000
sub edi, dword [esp + 0x78]
cmp byte [esi + 0x121], 0
je 0x506ef5
push edi
push str.outputChunkSize
mov ecx, esi
call fcn.004373b0
movzx edx, byte [esp + 0xac]
push edx
push str.outputComplete
mov ecx, esi
call fcn.004373b0
test edi, edi
je 0x506f1a
mov ecx, dword [esp + 0x98]
push esi
push ebp
push edi
push ebx
call fcn.004735a0
test al, al
je 0x506ffe
add dword [esp + 0x28], edi
adc dword [esp + 0x2c], 0
mov ecx, dword [ebp + 4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x8000
test ecx, ecx
je 0x506f3b
push esi
call fcn.00485430
test al, al
jne 0x507022
cmp byte [esp + 0xac], 0
je 0x506eae
cmp byte [esp + 0x90], 0
je 0x507050
call fcn.00436fc0
cmp byte [esi + 0x121], 0
mov ecx, dword [esp + 0x64]
mov bl, al
mov dword [esp + 0x1c], ecx
je 0x506f92
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.00437500
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
test bl, bl
je 0x506fc5
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.004735a0
test al, al
jne 0x507046
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.004396f0
jmp 0x506be1
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.004396f0
jmp 0x506be1
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.004396f0
jmp 0x506be1
add dword [esp + 0x28], 4
adc dword [esp + 0x2c], 0
cmp byte [esi + 0x121], 0
je 0x50706f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push str.outputByteCount
mov ecx, esi
call fcn.00437490
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 2
call fcn.004396f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 1
call fcn.004396f0
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], 0
call fcn.0054f0e0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], 0xffffffff
call fcn.004377b0
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