Function at 0x50139c
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x40
push ebx
push esi
push edi
test edx, edx
je case.0x50142f.31
mov esi, dword [edx + 0x1c]
mov dword [ebp - 0x38], esi
test esi, esi
je case.0x50142f.31
xor eax, eax
cmp dword [edx + 0xc], eax
je case.0x50142f.31
cmp dword [edx], eax
jne 0x5013d6
cmp dword [edx + 4], eax
jne case.0x50142f.31
mov eax, dword [esi]
push 0xc
pop ecx
cmp eax, 0xb
jne 0x5013e4
mov dword [esi], ecx
mov eax, ecx
mov ecx, dword [edx + 0xc]
and dword [ebp - 0x28], 0
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x18]
push 0x1f
mov dword [ebp - 0x24], edx
pop edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], ecx
cmp eax, edx
ja case.0x50142f.31
mov edx, dword [ebp + 8]
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
jmp dword [eax*4 + 0x502834]
cmp dword [esi + 8], 0
jne 0x501447
mov dword [esi], 0xc
jmp 0x5026f8
push 0x10
pop eax
cmp edi, eax
jae 0x501480
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
push 0x10
pop ecx
inc eax
mov dword [ebp - 0x10], ebx
cmp edi, ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
jb 0x501451
test byte [esi + 8], 2
je 0x5014ce
cmp ebx, 0x8b1f
jne 0x5014ce
xor edi, edi
push edi
push edi
push edi
call fcn.00502da2
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], bl
push 2
shr ebx, 8
push eax
mov byte [ebp - 0x1b], bl
push dword [esi + 0x18]
call fcn.00502da2
mov ebx, edi
mov dword [esi + 0x18], eax
add esp, 0x18
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [esi], 1
mov edx, dword [ebp + 8]
jmp 0x5026f5
and dword [esi + 0x10], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x5014dd
or dword [eax + 0x30], 0xffffffff
test byte [esi + 8], 1
je 0x501586
movzx ecx, bl
mov eax, ebx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
push 0x1f
pop ecx
div ecx
test edx, edx
jne 0x501583
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x50151a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x5026ef
shr ebx, 4
sub edi, 4
mov ecx, ebx
mov dword [ebp - 0x10], ebx
and ecx, 0xf
mov dword [ebp - 0x14], edi
add ecx, 8
cmp dword [esi + 0x24], 0
jne 0x50156f
mov dword [esi + 0x24], ecx
xor edi, edi
xor eax, eax
push edi
inc eax
shl eax, cl
push edi
push edi
mov dword [esi + 0x14], eax
call fcn.00502b61
mov edx, dword [ebp + 8]
add esp, 0xc
shr ebx, 8
not ebx
mov dword [esi + 0x18], eax
and ebx, 2
or ebx, 9
mov dword [edx + 0x30], eax
mov dword [esi], ebx
mov ebx, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jmp 0x5026f5
cmp ecx, dword [esi + 0x24]
jbe 0x501537
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_window_size
jmp 0x5026ef
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x5026ef
push 0x10
pop eax
cmp edi, eax
jae 0x5015cb
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
push 0x10
pop ecx
inc eax
mov dword [ebp - 0x10], ebx
cmp edi, ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
jb 0x50159c
mov dword [esi + 0x10], ebx
cmp bl, 8
je 0x5015e5
mov dword [edx + 0x18], str.unknown_compression_method
mov dword [esi], 0x1d
jmp 0x5026f8
test ebx, 0xe000
je 0x5015f6
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x5015da
mov edx, dword [esi + 0x20]
mov ecx, ebx
shr ecx, 8
test edx, edx
je 0x501609
mov eax, ecx
and eax, 1
mov dword [edx], eax
test dword [esi + 0x10], 0x200
je 0x50162c
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], bl
push eax
mov byte [ebp - 0x1b], cl
push dword [esi + 0x18]
call fcn.00502da2
add esp, 0xc
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 8]
xor eax, eax
mov edx, dword [ebp - 0xc]
mov ebx, eax
mov edi, eax
mov dword [esi], 2
test ecx, ecx
je 0x502743
movzx eax, byte [edx]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
inc edx
cmp edi, 0x20
mov dword [ebp - 0xc], edx
jb 0x50163e
mov eax, dword [esi + 0x20]
test eax, eax
je 0x50166c
mov dword [eax + 4], ebx
test dword [esi + 0x10], 0x200
je 0x5016a5
mov eax, ebx
mov byte [ebp - 0x1c], bl
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x1c]
push 4
shr ebx, 0x18
push eax
mov byte [ebp - 0x19], bl
push dword [esi + 0x18]
call fcn.00502da2
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 8]
xor eax, eax
mov ebx, eax
mov dword [esi], 3
mov edi, eax
test ecx, ecx
je 0x502743
movzx eax, byte [edx]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
push 0x10
pop eax
inc edx
cmp edi, eax
mov dword [ebp - 0xc], edx
jb 0x5016b4
mov edx, dword [esi + 0x20]
mov ecx, ebx
shr ecx, 8
test edx, edx
je 0x5016f2
movzx eax, bl
mov dword [edx + 8], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 0xc], ecx
test dword [esi + 0x10], 0x200
je 0x501715
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], bl
push eax
mov byte [ebp - 0x1b], cl
push dword [esi + 0x18]
call fcn.00502da2
add esp, 0xc
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov ebx, edx
mov dword [esi], 4
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jmp 0x501753
mov edi, dword [ebp - 0x34]
cmp edi, 0x20
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], ebx
jmp 0x50165d
mov edi, dword [ebp - 0x2c]
cmp edi, 0x10
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], ebx
jmp 0x5016d5
xor edx, edx
test dword [esi + 0x10], 0x400
je 0x5017cd
push 0x10
pop eax
cmp edi, eax
jae 0x50178c
mov edx, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [edx]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
push 0x10
inc edx
pop eax
mov dword [ebp - 0xc], edx
cmp edi, eax
jb 0x501766
mov eax, dword [esi + 0x20]
mov dword [esi + 0x40], ebx
test eax, eax
je 0x501799
mov dword [eax + 0x14], ebx
test dword [esi + 0x10], 0x200
je 0x5017bf
mov byte [ebp - 0x1c], bl
lea eax, [ebp - 0x1c]
push 2
shr ebx, 8
push eax
mov byte [ebp - 0x1b], bl
push dword [esi + 0x18]
call fcn.00502da2
add esp, 0xc
mov dword [esi + 0x18], eax
xor eax, eax
mov ebx, eax
mov edi, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jmp 0x5017d7
mov eax, dword [esi + 0x20]
test eax, eax
je 0x5017d7
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 8]
mov dword [esi], 5
test dword [esi + 0x10], 0x400
je 0x50188b
mov eax, dword [esi + 0x40]
mov edx, ecx
cmp eax, ecx
cmovbe edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x501883
cmp dword [esi + 0x20], 0
mov ecx, dword [ebp - 8]
je 0x501854
mov edx, dword [esi + 0x20]
mov edx, dword [edx + 0x10]
test edx, edx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x2c]
je 0x501854
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
sub edx, eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add eax, edx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
jbe 0x50183c
sub ecx, eax
jmp 0x50183e
mov ecx, edx
add eax, dword [ebp - 0x34]
push ecx
push dword [ebp - 0xc]
push eax
call fcn.00504830
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 0x2c]
test dword [esi + 0x10], 0x200
je 0x501872
push edx
push dword [ebp - 0xc]
push dword [esi + 0x18]
call fcn.00502da2
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
sub ecx, eax
add dword [ebp - 0xc], eax
sub dword [esi + 0x40], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x502743
xor edx, edx
mov dword [esi], 6
mov dword [esi + 0x40], edx
jmp 0x50189a
xor edx, edx
test dword [esi + 0x10], 0x800
je 0x50192a
test ecx, ecx
je 0x502743
mov eax, edx
mov edx, dword [ebp - 0xc]
mov dl, byte [eax + edx]
inc eax
mov byte [ebp - 1], dl
mov edx, dword [esi + 0x20]
test edx, edx
je 0x5018e2
mov edi, dword [edx + 0x1c]
mov dword [ebp - 0x30], edi
test edi, edi
je 0x5018e2
mov edi, dword [esi + 0x40]
cmp edi, dword [edx + 0x20]
jae 0x5018e2
mov bl, byte [ebp - 1]
mov edx, edi
mov edi, dword [ebp - 0x30]
mov byte [edi + edx], bl
inc dword [esi + 0x40]
cmp byte [ebp - 1], 0
je 0x5018ec
cmp eax, ecx
jb 0x5018b1
test dword [esi + 0x10], 0x200
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
je 0x501916
push eax
push dword [ebp - 0xc]
push dword [esi + 0x18]
call fcn.00502da2
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 8], ecx
jne 0x502743
jmp 0x501934
mov eax, dword [esi + 0x20]
test eax, eax
je 0x501934
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [esi], 7
mov dword [esi + 0x40], edx
jmp 0x501943
xor edx, edx
test dword [esi + 0x10], 0x1000
je 0x5019d3
test ecx, ecx
je 0x502743
mov eax, edx
mov edx, dword [ebp - 0xc]
mov dl, byte [eax + edx]
inc eax
mov byte [ebp - 1], dl
mov edx, dword [esi + 0x20]
test edx, edx
je 0x50198b
mov edi, dword [edx + 0x24]
mov dword [ebp - 0x30], edi
test edi, edi
je 0x50198b
mov edi, dword [esi + 0x40]
cmp edi, dword [edx + 0x28]
jae 0x50198b
mov bl, byte [ebp - 1]
mov edx, edi
mov edi, dword [ebp - 0x30]
mov byte [edi + edx], bl
inc dword [esi + 0x40]
cmp byte [ebp - 1], 0
je 0x501995
cmp eax, ecx
jb 0x50195a
test dword [esi + 0x10], 0x200
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
je 0x5019bf
push eax
push dword [ebp - 0xc]
push dword [esi + 0x18]
call fcn.00502da2
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 8], ecx
jne 0x502743
jmp 0x5019dd
mov eax, dword [esi + 0x20]
test eax, eax
je 0x5019dd
mov dword [eax + 0x24], edx
mov edx, dword [ebp + 8]
mov dword [esi], 8
mov eax, dword [esi + 0x10]
test eax, 0x200
je 0x501a4e
push 0x10
pop eax
cmp edi, eax
jae 0x501a29
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
push 0x10
pop ecx
inc eax
mov dword [ebp - 0x10], ebx
cmp edi, ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
jb 0x5019fa
movzx eax, word [esi + 0x18]
cmp ebx, eax
je 0x501a3d
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x5026ef
mov eax, dword [esi + 0x10]
xor edx, edx
mov ebx, edx
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jmp 0x501a50
xor edx, edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x501a6a
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [esi + 0x20]
mov dword [eax + 0x30], 1
push edx
push edx
push edx
call fcn.00502da2
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x18], eax
mov dword [edx + 0x30], eax
mov dword [esi], 0xb
jmp 0x5026f5
cmp edi, 0x20
jae 0x501ab8
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp edi, 0x20
jb 0x501a91
mov ecx, ebx
mov edi, 0xff00
and ecx, edi
mov eax, ebx
shl eax, 0x10
add ecx, eax
mov eax, ebx
shr eax, 8
and eax, edi
shl ecx, 8
add eax, ecx
shr ebx, 0x18
mov ecx, dword [ebp - 8]
add eax, ebx
mov dword [esi + 0x18], eax
mov dword [edx + 0x30], eax
xor eax, eax
mov ebx, eax
mov dword [esi], 0xa
mov edi, eax
jmp 0x501af2
xor eax, eax
cmp dword [esi + 0xc], eax
je 0x50270b
push eax
push eax
push eax
call fcn.00502b61
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov dword [edx + 0x30], eax
mov dword [esi], 0xb
cmp dword [ebp + 0xc], 5
je 0x502743
cmp dword [ebp + 0xc], 6
je 0x502743
cmp dword [esi + 4], 0
je 0x501b4c
mov ecx, edi
mov dword [esi], 0x1a
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jmp 0x5026f5
cmp edi, 3
jae 0x501b7b
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp edi, 3
jb 0x501b54
mov eax, ebx
shr ebx, 1
and eax, 1
mov dword [esi + 4], eax
mov eax, ebx
and eax, 3
sub eax, 0
je 0x501be7
sub eax, 1
je 0x501bb4
sub eax, 1
je 0x501bad
sub eax, 1
jne 0x501bed
mov dword [edx + 0x18], str.invalid_block_type
mov dword [esi], 0x1d
jmp 0x501bed
push 0x10
pop eax
mov dword [esi], eax
jmp 0x501bed
cmp dword [ebp + 0xc], 6
mov dword [esi + 0x4c], 0x53fd68
mov dword [esi + 0x54], 9
mov dword [esi + 0x50], 0x540568
mov dword [esi + 0x58], 5
mov dword [esi], 0x13
jne 0x501bed
shr ebx, 2
sub edi, 3
jmp 0x502743
mov dword [esi], 0xd
shr ebx, 2
sub edi, 3
jmp 0x501564
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x501c24
mov eax, dword [ebp - 8]
test eax, eax
je 0x502746
dec eax
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, cl
add ebx, eax
inc dword [ebp - 0xc]
add edi, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
cmp edi, 0x20
jb 0x501c03
mov eax, ebx
movzx ecx, bx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x501c49
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x5026ef
xor eax, eax
mov dword [esi + 0x40], ecx
cmp dword [ebp + 0xc], 6
mov ebx, eax
mov edi, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [esi], 0xe
je 0x502743
mov ecx, dword [ebp - 8]
mov dword [esi], 0xf
cmp dword [esi + 0x40], 0
je 0x501cc1
cmp dword [esi + 0x40], ecx
mov eax, ecx
mov ecx, dword [ebp - 0x18]
cmovbe eax, dword [esi + 0x40]
cmp eax, ecx
cmovbe ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x502743
push ecx
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00504830
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, dword [ebp - 8]
add dword [ebp - 0xc], eax
sub ecx, eax
sub dword [ebp - 0x18], eax
add dword [ebp - 0x20], eax
sub dword [esi + 0x40], eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
jmp 0x5026f8
mov dword [esi], 0xb
jmp 0x5026f8
cmp edi, 0xe
jae 0x501cfb
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp edi, 0xe
jb 0x501cd4
mov eax, ebx
sub edi, 0xe
shr ebx, 5
push 0x1f
pop ecx
and ecx, eax
mov dword [ebp - 0x14], edi
mov eax, ebx
add ecx, 0x101
and eax, 0x1f
shr ebx, 5
inc eax
mov dword [esi + 0x60], ecx
mov dword [ebp - 0x34], eax
mov dword [esi + 0x64], eax
mov eax, ebx
and eax, 0xf
shr ebx, 4
add eax, 4
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x5c], eax
cmp ecx, 0x11e
ja 0x501d4d
cmp dword [ebp - 0x34], 0x1e
ja 0x501d4d
and dword [esi + 0x68], 0
push 0x11
pop eax
mov dword [esi], eax
jmp 0x501da9
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x5026ef
cmp edi, 3
jae 0x501d85
mov edx, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [edx]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
inc edx
mov dword [ebp - 0xc], edx
cmp edi, 3
jb 0x501d61
mov eax, dword [esi + 0x68]
mov ecx, ebx
and ecx, 7
shr ebx, 3
mov dword [ebp - 0x10], ebx
movzx eax, word [eax*2 + 0x5405e8]
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
sub edi, 3
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x5c]
jb 0x501d59
jmp 0x501dcc
movzx eax, word [eax*2 + 0x5405e8]
xor ecx, ecx
mov word [esi + eax*2 + 0x70], cx
mov eax, dword [esi + 0x68]
inc eax
mov dword [esi + 0x68], eax
cmp eax, 0x13
jb 0x501db6
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [esi + 0x4c], eax
mov dword [ecx], eax
lea edx, [esi + 0x54]
lea eax, [esi + 0x2f0]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea eax, [esi + 0x70]
push eax
push 0
call fcn.0050305c
mov edx, dword [ebp + 8]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x501e17
mov dword [edx + 0x18], str.invalid_code_lengths_set
jmp 0x5026ef
and dword [esi + 0x68], 0
mov dword [esi], 0x12
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp dword [esi + 0x68], eax
jae 0x50205b
mov ecx, dword [esi + 0x54]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x34], eax
jmp 0x501e62
mov eax, dword [ebp - 8]
test eax, eax
je 0x502746
dec eax
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, cl
add ebx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
add edi, 8
mov ecx, dword [esi + 0x4c]
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x2c], eax
cmp ecx, edi
ja 0x501e3e
mov ecx, eax
shr ecx, 0x10
cmp cx, word [ebp - 0x40]
jae 0x501ed8
shr eax, 8
movzx ecx, al
mov dword [ebp - 0x34], ecx
jmp 0x501eb3
mov eax, dword [ebp - 8]
test eax, eax
je 0x502746
dec eax
mov ecx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x34]
add ebx, eax
inc dword [ebp - 0xc]
add edi, 8
cmp edi, ecx
jb 0x501e8f
mov ax, word [ebp - 0x2a]
sub edi, ecx
shr ebx, cl
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov word [esi + ecx*2 + 0x70], ax
inc dword [esi + 0x68]
mov ecx, dword [esi + 0x68]
jmp 0x502032
push 0x10
pop ecx
movzx eax, ah
cmp word [ebp - 0x2a], cx
jne 0x501f4c
lea ecx, [eax + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp edi, ecx
jae 0x501f1a
mov eax, dword [ebp - 8]
test eax, eax
je 0x502746
dec eax
mov ecx, edi
mov dword [ebp - 8], eax
add edi, 8
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, cl
add ebx, eax
inc dword [ebp - 0xc]
cmp edi, dword [ebp - 0x34]
jb 0x501ef1
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub edi, eax
mov eax, dword [esi + 0x68]
shr ebx, cl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
test eax, eax
je 0x502042
movzx eax, word [esi + eax*2 + 0x6e]
mov ecx, ebx
and ecx, 3
shr ebx, 2
add ecx, 3
mov dword [ebp - 0x2c], eax
sub edi, 2
jmp 0x501ff3
push 0x11
pop ecx
cmp word [ebp - 0x2a], cx
jne 0x501fa2
lea ecx, [eax + 3]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp edi, ecx
jae 0x501f8b
mov eax, dword [ebp - 8]
test eax, eax
je 0x502746
dec eax
mov ecx, edi
mov dword [ebp - 8], eax
add edi, 8
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, cl
add ebx, eax
inc dword [ebp - 0xc]
cmp edi, dword [ebp - 0x30]
jb 0x501f62
mov eax, dword [ebp - 0x34]
mov ecx, eax
shr ebx, cl
mov ecx, ebx
shr ebx, 3
and ecx, 7
push 0xfffffffffffffffd
pop eax
add ecx, 3
sub eax, dword [ebp - 0x34]
jmp 0x501fed
lea ecx, [eax + 7]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp edi, ecx
jae 0x501fd8
mov eax, dword [ebp - 8]
test eax, eax
je 0x502746
dec eax
mov ecx, edi
mov dword [ebp - 8], eax
add edi, 8
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
shl eax, cl
add ebx, eax
inc dword [ebp - 0xc]
cmp edi, dword [ebp - 0x30]
jb 0x501faf
mov eax, dword [ebp - 0x34]
mov ecx, eax
shr ebx, cl
mov ecx, ebx
shr ebx, 7
and ecx, 0x7f
push 0xfffffffffffffff9
pop eax
add ecx, 0xb
sub eax, dword [ebp - 0x34]
add edi, eax
and dword [ebp - 0x2c], 0
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x30], ecx
add ecx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
cmp ecx, eax
ja 0x50204e
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov word [esi + eax*2 + 0x70], dx
mov eax, dword [esi + 0x68]
lea eax, [eax + 1]
mov dword [esi + 0x68], eax
sub ecx, 1
jne 0x502017
mov edx, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp ecx, eax
jb 0x501e30
jmp 0x50205b
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x5026ef
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov dword [esi], 0x1d
cmp dword [esi], 0x1d
je 0x5026f5
xor eax, eax
cmp word [esi + 0x270], ax
jne 0x50207b
mov dword [edx + 0x18], str.invalid_code____missing_end_of_block
jmp 0x5026ef
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [esi + 0x4c], eax
mov dword [ecx], eax
lea edx, [esi + 0x54]
lea eax, [esi + 0x2f0]
mov dword [edx], 9
push eax
push edx
push ecx
push dword [esi + 0x60]
lea eax, [esi + 0x70]
push eax
push 1
call fcn.0050305c
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5020c2
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
jmp 0x5026ef
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
lea edx, [esi + 0x58]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x2f0]
push eax
mov eax, dword [esi + 0x60]
push edx
push ecx
push dword [esi + 0x64]
add eax, 0x38
mov dword [edx], 6
lea eax, [esi + eax*2]
push eax
push 2
call fcn.0050305c
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x502109
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_distances_set
jmp 0x5026ef
cmp dword [ebp + 0xc], 6
mov dword [esi], 0x13
je 0x502743
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [esi], 0x14
cmp ecx, 6
jb 0x502194
mov eax, dword [ebp - 0x18]
cmp eax, 0x102
jb 0x502194
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [edx + 0xc], esi
mov esi, dword [ebp - 0x38]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
push edx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
call fcn.005034a9
cmp dword [esi], 0xb
mov edx, dword [ebp + 8]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
pop ecx
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0x10]
pop ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
jne 0x5026f8
or dword [esi + 0x1bc4], 0xffffffff
jmp 0x5026f8
mov ecx, dword [esi + 0x54]
xor eax, eax
and dword [esi + 0x1bc4], 0
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
mov dword [ebp - 0x34], eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x5021f3
mov edx, dword [ebp - 8]
test edx, edx
je 0x502743
mov eax, dword [ebp - 0xc]
mov ecx, edi
dec edx
add edi, 8
mov dword [ebp - 8], edx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esi + 0x4c]
add ebx, eax
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0xc]
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x5021be
test al, al
je 0x502294
test al, 0xf0
jne 0x502294
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov dword [ebp - 0x14], edx
movzx ecx, al
add ecx, edx
shr eax, 0x10
xor edx, edx
mov dword [ebp - 0x30], eax
inc edx
shl edx, cl
lea ecx, [edx - 1]
mov edx, ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x14]
and edx, ebx
shr edx, cl
mov ecx, dword [esi + 0x4c]
add edx, eax
mov eax, dword [ecx + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, dword [ebp - 0x14]
cmp ecx, edi
jbe 0x502287
mov edx, dword [ebp - 8]
test edx, edx
je 0x502743
mov eax, dword [ebp - 0xc]
mov ecx, edi
dec edx
add edi, 8
mov dword [ebp - 8], edx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ebx, eax
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0xc]
and eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, dword [ebp - 0x14]
cmp ecx, edi
ja 0x502247
mov ecx, dword [ebp - 0x14]
shr ebx, cl
sub edi, ecx
mov dword [esi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [esi + 0x1bc4], ecx
sub edi, ecx
shr ebx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [esi + 0x40], ecx
test al, al
jne 0x5022c3
mov dword [esi], 0x19
jmp 0x5014c6
test al, 0x20
je 0x5022d9
or dword [esi + 0x1bc4], 0xffffffff
mov dword [esi], 0xb
jmp 0x5014c6
mov ecx, dword [ebp - 8]
test al, 0x40
je 0x5022ef
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x5015da
movzx eax, al
and eax, 0xf
mov dword [esi], 0x15
mov dword [esi + 0x48], eax
mov edx, dword [esi + 0x48]
test edx, edx
je 0x502349
cmp edi, edx
jae 0x502332
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp edi, edx
jb 0x50230c
xor eax, eax
mov ecx, edx
inc eax
sub edi, edx
shl eax, cl
dec eax
and eax, ebx
shr ebx, cl
add dword [esi + 0x40], eax
add dword [esi + 0x1bc4], edx
mov eax, dword [esi + 0x40]
mov dword [esi + 0x1bc8], eax
mov dword [esi], 0x16
mov ecx, dword [esi + 0x58]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x50]
dec eax
mov dword [ebp - 0x34], eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x5023b0
mov edx, dword [ebp - 8]
test edx, edx
je 0x502743
mov eax, dword [ebp - 0xc]
mov ecx, edi
dec edx
add edi, 8
mov dword [ebp - 8], edx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [esi + 0x50]
add ebx, eax
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0xc]
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x50237b
test al, 0xf0
jne 0x50244d
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov dword [ebp - 0x14], edx
movzx ecx, al
add ecx, edx
shr eax, 0x10
xor edx, edx
mov dword [ebp - 0x30], eax
inc edx
shl edx, cl
lea ecx, [edx - 1]
mov edx, ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x14]
and edx, ebx
shr edx, cl
mov ecx, dword [esi + 0x50]
add edx, eax
mov eax, dword [ecx + edx*4]
mov ecx, eax
mov edx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, edi
jbe 0x502441
mov edx, dword [ebp - 8]
test edx, edx
je 0x502743
mov eax, dword [ebp - 0xc]
mov ecx, edi
dec edx
add edi, 8
mov dword [ebp - 8], edx
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ebx, eax
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0xc]
and eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, dword [ebp - 0x14]
cmp ecx, edi
ja 0x5023fe
mov edx, dword [ebp - 0x14]
mov ecx, edx
sub edi, edx
shr ebx, cl
add dword [esi + 0x1bc4], edx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [esi + 0x1bc4], ecx
sub edi, ecx
shr ebx, cl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
test al, 0x40
je 0x502478
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x5026ef
mov ecx, eax
mov dword [esi], 0x17
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x5024e5
cmp edi, eax
jae 0x5024c7
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp edi, dword [esi + 0x48]
jb 0x5024a0
mov ecx, dword [esi + 0x48]
xor eax, eax
inc eax
sub edi, ecx
shl eax, cl
dec eax
mov dword [ebp - 0x14], edi
and eax, ebx
shr ebx, cl
add dword [esi + 0x44], eax
add dword [esi + 0x1bc4], ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 8]
mov dword [esi], 0x18
cmp dword [ebp - 0x18], 0
je 0x502743
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x44]
cmp eax, dword [ebp - 0x34]
jbe 0x502550
sub eax, dword [ebp - 0x34]
cmp eax, dword [esi + 0x2c]
jbe 0x502529
cmp dword [esi + 0x1bc0], 0
je 0x502529
mov dword [edx + 0x18], str.invalid_distance_too_far_back
jmp 0x5015da
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jbe 0x502535
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x40]
sub ecx, eax
add ecx, dword [esi + 0x34]
cmp eax, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], edx
cmovbe edx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
jmp 0x50255b
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x18]
mov esi, edx
cmp dword [ebp - 0x2c], esi
cmovbe edx, dword [ebp - 0x2c]
sub esi, edx
sub eax, edx
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x38]
mov dword [esi + 0x40], eax
mov esi, dword [ebp - 0x20]
sub ecx, esi
mov al, byte [ecx + esi]
mov byte [esi], al
inc esi
sub edx, 1
jne 0x502579
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
cmp dword [esi + 0x40], 0
jne 0x5026f8
mov dword [esi], 0x14
jmp 0x5026f8
cmp dword [ebp - 0x18], 0
je 0x502743
mov edx, dword [ebp - 0x20]
mov al, byte [esi + 0x40]
inc dword [ebp - 0x20]
dec dword [ebp - 0x18]
mov byte [edx], al
mov dword [esi], 0x14
jmp 0x501cb9
cmp dword [esi + 8], 0
je 0x502692
cmp edi, 0x20
jae 0x502607
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edi
cmp edi, 0x20
jb 0x5025da
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
sub ecx, eax
add dword [edx + 0x14], ecx
add dword [esi + 0x1c], ecx
test ecx, ecx
je 0x502644
mov eax, dword [ebp - 0x20]
sub eax, ecx
cmp dword [esi + 0x10], 0
push ecx
push eax
push dword [esi + 0x18]
je 0x502630
call fcn.00502da2
jmp 0x502635
call fcn.00502b61
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x18], eax
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
mov eax, ebx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, ebx
shr eax, 0x18
add ecx, eax
xor eax, eax
cmp dword [esi + 0x10], eax
cmovne ecx, ebx
cmp ecx, dword [esi + 0x18]
mov ecx, dword [ebp - 8]
je 0x502688
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x5015da
mov ebx, eax
mov edi, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
mov dword [esi], 0x1b
xor eax, eax
cmp dword [esi + 8], eax
je 0x50272d
cmp dword [esi + 0x10], eax
je 0x50272d
cmp edi, 0x20
jae 0x5026e3
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x502743
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 8], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 8]
add ebx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edi
cmp edi, 0x20
jb 0x5026b4
xor eax, eax
cmp ebx, dword [esi + 0x1c]
je 0x502729
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1d
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
cmp eax, 0x1f
jbe 0x501429
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
push 2
jmp 0x502705
mov ebx, eax
mov edi, eax
mov dword [esi], 0x1c
mov dword [ebp - 0x28], 1
jmp 0x502743
mov dword [ebp - 0x28], 0xfffffffd
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [esi + 0x38], ebx
xor ebx, ebx
mov dword [esi + 0x3c], edi
mov edi, dword [ebp - 0x24]
cmp dword [esi + 0x28], ebx
jne 0x502777
cmp dword [esi], 0x1a
jge 0x502794
cmp edi, dword [edx + 0x10]
je 0x502794
push edi
push edx
call fcn.00502a85
pop ecx
pop ecx
test eax, eax
je 0x502791
mov dword [esi], 0x1e
push 0xfffffffffffffffc
jmp 0x502705
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
sub eax, dword [edx + 4]
sub edi, dword [edx + 0x10]
add dword [edx + 8], eax
add dword [edx + 0x14], edi
add dword [esi + 0x1c], edi
mov dword [ebp - 0x3c], eax
cmp dword [esi + 8], ebx
je 0x5027d9
test edi, edi
je 0x5027d9
mov eax, dword [edx + 0xc]
push edi
sub eax, edi
push eax
push dword [esi + 0x18]
cmp dword [esi + 0x10], ebx
je 0x5027c8
call fcn.00502da2
jmp 0x5027cd
call fcn.00502b61
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x18], eax
mov dword [edx + 0x30], eax
cmp dword [esi], 0x13
je 0x5027e3
cmp dword [esi], 0xe
jne 0x5027e8
mov ebx, 0x100
mov ecx, dword [esi + 4]
neg ecx
mov dword [ebp + 8], pe_nt_image_headers32
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [esi], 0xb
cmove eax, dword [ebp + 8]
add ecx, ebx
add eax, ecx
add eax, dword [esi + 0x3c]
cmp dword [ebp - 0x3c], 0
mov dword [edx + 0x2c], eax
jne 0x502816
test edi, edi
je 0x50281c
cmp dword [ebp + 0xc], 4
jne 0x50282c
mov eax, dword [ebp - 0x28]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x502706
mov eax, dword [ebp - 0x28]
jmp 0x502706