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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x84
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0x98]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebx]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub edx, 1
mov dword [esp + 0x14], edx
mov ebp, esi
sub ebp, 1
lea eax, [edx + eax - 5]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp], esi
mov esi, dword [esp + 0x10]
mov edx, eax
sub edx, dword [esp + 0x9c]
mov ebx, dword [ebx + 0x2c]
lea eax, [ebp + eax - 0x101]
mov esi, dword [esi + 0x30]
lea edi, [ebp + edx]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], esi
mov edi, dword [edi + 0x34]
mov esi, ebx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x38], edi
mov edi, dword [esi + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x38]
mov ebx, dword [ebx + 0x3c]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x10]
mov esi, dword [esi + 0x50]
add edx, dword [esp]
mov edi, dword [edi + 0x54]
mov dword [esp + 0x3c], esi
mov esi, 1
mov dword [esp + 0x5c], edx
mov dword [esp + 8], edi
movzx ecx, byte [esp + 8]
mov edi, esi
shl edi, cl
mov ecx, dword [esp + 0x10]
sub edi, 1
mov dword [esp + 0x24], edi
mov edi, dword [ecx + 0x58]
mov ecx, edi
mov edi, dword [esp + 0x2c]
shl esi, cl
sub esi, 1
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x38]
shr edi, 2
mov dword [esp + 0x44], edi
shl edi, 2
mov dword [esp + 0x40], edi
sub esi, 1
mov dword [esp + 0x34], esi
add esi, edi
mov dword [esp + 0x60], esi
cmp ebx, 0xe
ja 0x100524db
mov edx, dword [esp + 0x14]
mov ecx, ebx
movzx esi, byte [edx + 1]
movzx edx, byte [edx + 2]
shl esi, cl
lea ecx, [ebx + 8]
add ebx, 0x10
shl edx, cl
add edx, esi
mov esi, dword [esp + 0x14]
add eax, edx
add esi, 2
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
and edx, eax
lea edx, [edi + edx*4]
movzx ecx, byte [edx + 1]
movzx esi, word [edx + 2]
shr eax, cl
sub ebx, ecx
movzx ecx, byte [edx]
test ecx, ecx
je 0x1005255a
test cl, 0x10
jne 0x100525d9
test cl, 0x40
jne 0x10052894
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
jmp 0x10052529
test cl, 0x10
jne 0x100525d5
test cl, 0x40
jne 0x10052890
mov edx, 1
movzx esi, si
shl edx, cl
mov ecx, edx
sub ecx, 1
and ecx, eax
add esi, ecx
lea edx, [ebp + esi*4]
movzx ecx, byte [edx + 1]
movzx esi, word [edx + 2]
movzx edi, cl
shr eax, cl
movzx ecx, byte [edx]
sub ebx, edi
test ecx, ecx
jne 0x10052517
mov ebp, dword [esp + 0x18]
mov edx, esi
mov byte [ebp + 1], dl
add ebp, 1
cmp ebp, dword [esp + 0x20]
jae 0x10052576
mov esi, dword [esp + 0x28]
cmp dword [esp + 0x14], esi
jb 0x100524af
mov edx, dword [esp + 0x14]
mov ecx, ebx
mov esi, 1
shr ecx, 3
mov edi, dword [esp + 0x98]
sub edx, ecx
shl ecx, 3
sub ebx, ecx
mov ecx, ebx
shl esi, cl
sub esi, 1
and esi, eax
lea eax, [edx + 1]
mov dword [edi], eax
lea eax, [ebp + 1]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x28]
sub eax, edx
add eax, 5
mov dword [edi + 4], eax
mov eax, dword [esp + 0x20]
sub eax, ebp
add eax, 0x101
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], ebx
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x18]
movzx esi, si
mov dword [esp + 0x18], esi
mov esi, ecx
and esi, 0xf
je 0x10052619
cmp esi, ebx
jbe 0x10052603
mov edi, dword [esp + 0x14]
mov ecx, ebx
add ebx, 8
movzx edx, byte [edi + 1]
add edi, 1
mov dword [esp + 0x14], edi
shl edx, cl
add eax, edx
mov ecx, esi
mov edx, 1
shl edx, cl
sub ebx, esi
sub edx, 1
and edx, eax
add dword [esp + 0x18], edx
shr eax, cl
cmp ebx, 0xe
jbe 0x100528a8
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x3c]
and edx, eax
lea edx, [esi + edx*4]
movzx ecx, byte [edx + 1]
movzx edi, word [edx + 2]
shr eax, cl
sub ebx, ecx
movzx ecx, byte [edx]
test cl, 0x10
jne 0x1005268f
test cl, 0x40
jne 0x100528f4
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x3c]
jmp 0x1005265f
test cl, 0x40
jne 0x100528f0
mov edx, 1
movzx edi, di
shl edx, cl
sub edx, 1
and edx, eax
add edi, edx
lea edx, [ebp + edi*4]
movzx ecx, byte [edx + 1]
movzx edi, word [edx + 2]
movzx esi, cl
shr eax, cl
movzx ecx, byte [edx]
sub ebx, esi
test cl, 0x10
je 0x10052656
mov ebp, dword [esp + 0x30]
mov esi, ecx
movzx edi, di
and esi, 0xf
cmp esi, ebx
mov dword [esp + 0x64], edi
jbe 0x100526c1
mov edi, dword [esp + 0x14]
mov ecx, ebx
movzx edx, byte [edi + 1]
shl edx, cl
lea ecx, [ebx + 8]
add eax, edx
cmp esi, ecx
ja 0x10052b77
add edi, 1
mov ebx, ecx
mov dword [esp + 0x14], edi
mov ecx, esi
mov edx, 1
shl edx, cl
sub ebx, esi
lea edi, [edx - 1]
mov edx, dword [esp + 0x64]
and edi, eax
shr eax, cl
mov ecx, ebp
sub ecx, dword [esp + 0x4c]
add edx, edi
mov dword [esp + 0x30], edx
mov edx, ebp
sub edx, dword [esp + 0x30]
cmp dword [esp + 0x30], ecx
jbe 0x10052911
mov esi, dword [esp + 0x30]
sub esi, ecx
cmp dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
jae 0x10052715
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x1bc0]
test esi, esi
jne 0x10052ca0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
test ecx, ecx
mov dword [esp + 0x6c], edx
jne 0x1005297e
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
sub edx, dword [esp + 0x54]
add edx, dword [esp + 0x34]
cmp dword [esp + 0x18], ecx
jbe 0x10052827
sub dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
sub ecx, ebp
sub esi, ecx
mov ecx, dword [esp + 0x54]
sub esi, dword [esp + 0x64]
sub esi, edi
add esi, dword [esp + 0x38]
shr ecx, 2
mov dword [esp + 0x70], ecx
shl ecx, 2
lea edi, [esi + 1]
test ecx, ecx
mov dword [esp + 0x6c], edi
lea edi, [ebp + 1]
mov dword [esp + 0x64], ecx
je 0x10052cca
mov ecx, dword [esp + 0x6c]
cmp dword [esp + 0x54], 9
seta byte [esp + 0x74]
or ecx, edi
and ecx, 3
sete cl
and byte [esp + 0x74], cl
lea ecx, [esi + 5]
cmp edi, ecx
seta byte [esp + 0x78]
lea ecx, [ebp + 5]
cmp dword [esp + 0x6c], ecx
seta cl
or byte [esp + 0x78], cl
movzx ecx, byte [esp + 0x78]
test byte [esp + 0x74], cl
je 0x10052cca
mov edi, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x6c], eax
lea esi, [esi]
mov eax, dword [esi + ecx*4 + 1]
mov dword [ebp + ecx*4 + 1], eax
add ecx, 1
cmp edi, ecx
ja 0x100527d0
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
sub edi, dword [esp + 0x64]
add esi, ebp
mov eax, dword [esp + 0x6c]
add edx, dword [esp + 0x64]
cmp dword [esp + 0x54], ecx
je 0x1005281d
mov dword [esp + 0x64], ebp
xor ecx, ecx
mov ebp, eax
movzx eax, byte [edx + ecx + 1]
mov byte [esi + ecx + 1], al
add ecx, 1
cmp edi, ecx
jne 0x10052807
mov eax, ebp
mov ebp, dword [esp + 0x64]
add ebp, dword [esp + 0x54]
mov edx, ebp
sub edx, dword [esp + 0x30]
cmp dword [esp + 0x18], 2
jbe 0x1005285c
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [edx + 1]
sub ecx, 3
mov byte [ebp + 1], al
movzx eax, byte [edx + 2]
add edx, 3
mov byte [ebp + 2], al
movzx eax, byte [edx]
add ebp, 3
cmp ecx, 2
mov byte [ebp], al
ja 0x10052834
mov dword [esp + 0x18], ecx
mov eax, esi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10052562
movzx ecx, byte [edx + 1]
cmp dword [esp + 0x18], 2
mov byte [ebp + 1], cl
jne 0x10052c84
movzx edx, byte [edx + 2]
mov byte [ebp + 2], dl
add ebp, 2
jmp 0x10052562
mov ebp, dword [esp + 0x18]
and ecx, 0x20
je 0x100528d0
mov esi, dword [esp + 0x10]
mov dword [esi], 0xb
jmp 0x10052576
mov edi, dword [esp + 0x14]
mov ecx, ebx
movzx esi, byte [edi + 1]
movzx edx, byte [edi + 2]
add edi, 2
mov dword [esp + 0x14], edi
shl esi, cl
lea ecx, [ebx + 8]
add ebx, 0x10
shl edx, cl
add edx, esi
add eax, edx
jmp 0x10052622
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], str.invalid_literal_length_code
mov dword [edx], 0x1d
jmp 0x10052576
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x10]
mov dword [esi + 0x18], str.invalid_distance_code
mov dword [edi], 0x1d
jmp 0x10052576
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
jmp 0x10052924
mov edx, edi
mov ebp, esi
movzx ecx, byte [edx + 1]
sub eax, 3
cmp eax, 2
lea esi, [ebp + 3]
lea edi, [edx + 3]
mov byte [ebp + 1], cl
movzx ecx, byte [edx + 2]
mov byte [ebp + 2], cl
movzx ecx, byte [edx + 3]
mov byte [ebp + 3], cl
ja 0x10052920
mov dword [esp + 0x18], eax
mov ecx, esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
test esi, esi
je 0x10052b8e
movzx ecx, byte [edx + 4]
cmp dword [esp + 0x18], 2
mov byte [ebp + 4], cl
jne 0x10052c8c
movzx edx, byte [edx + 5]
mov byte [ebp + 5], dl
add ebp, 5
jmp 0x10052562
mov esi, dword [esp + 0x54]
cmp dword [esp + 0x2c], esi
mov ecx, esi
jae 0x10052b95
mov esi, dword [esp + 0x2c]
add esi, dword [esp + 0x58]
sub ecx, dword [esp + 0x2c]
mov edx, esi
sub edx, dword [esp + 0x54]
add edx, dword [esp + 0x34]
cmp dword [esp + 0x18], ecx
mov dword [esp + 0x54], ecx
jbe 0x10052827
sub dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x5c]
sub ecx, ebp
sub esi, ecx
sub esi, dword [esp + 0x64]
mov dword [esp + 0x80], ecx
sub esi, edi
add esi, dword [esp + 0x38]
lea ecx, [esi + 1]
mov dword [esp + 0x78], ecx
lea ecx, [ebp + 1]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x54]
shr ecx, 2
mov dword [esp + 0x68], ecx
shl ecx, 2
test ecx, ecx
mov dword [esp + 0x70], ecx
je 0x10052cdd
cmp dword [esp + 0x54], 9
mov ecx, dword [esp + 0x78]
seta byte [esp + 0x74]
or ecx, dword [esp + 0x7c]
and ecx, 3
sete cl
and byte [esp + 0x74], cl
lea ecx, [esi + 5]
cmp dword [esp + 0x7c], ecx
lea ecx, [ebp + 5]
seta byte [esp + 0xf]
cmp dword [esp + 0x78], ecx
seta cl
or byte [esp + 0xf], cl
movzx ecx, byte [esp + 0xf]
test byte [esp + 0x74], cl
je 0x10052cdd
xor ecx, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esi + ecx*4 + 1]
mov dword [ebp + ecx*4 + 1], eax
add ecx, 1
cmp dword [esp + 0x68], ecx
ja 0x10052a42
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
add edx, dword [esp + 0x70]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add esi, ebp
cmp dword [esp + 0x54], ecx
je 0x10052a97
mov dword [esp + 0x70], ebp
xor ecx, ecx
mov ebp, eax
movzx eax, byte [edx + ecx + 1]
mov byte [esi + ecx + 1], al
add ecx, 1
cmp dword [esp + 0x68], ecx
jne 0x10052a7f
mov eax, ebp
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
add edx, ebp
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x54], edx
jae 0x10052c95
mov edx, dword [esp + 0x2c]
sub esi, edx
mov edx, dword [esp + 0x80]
sub edx, dword [esp + 0x2c]
add edx, dword [esp + 0x64]
mov dword [esp + 0x18], esi
add edx, edi
add ebp, edx
mov edx, dword [esp + 0x40]
test edx, edx
je 0x10052cb9
mov edx, dword [esp + 0x38]
lea esi, [ebp + 4]
cmp dword [esp + 0x2c], 9
seta cl
or edx, ebp
and edx, 3
mov edi, ecx
sete dl
and edi, edx
mov edx, dword [esp + 0x38]
add edx, 4
cmp ebp, edx
seta dl
cmp dword [esp + 0x38], esi
seta cl
mov esi, ecx
mov ecx, edi
or edx, esi
test cl, dl
je 0x10052cb9
mov esi, dword [esp + 0x38]
xor edx, edx
mov edi, dword [esp + 0x44]
mov ecx, dword [esi + edx*4]
mov dword [ebp + edx*4], ecx
add edx, 1
cmp edi, edx
ja 0x10052b1e
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
add ecx, dword [esp + 0x40]
sub esi, dword [esp + 0x40]
cmp dword [esp + 0x2c], edx
mov dword [esp + 0x6c], edi
je 0x10052b64
xor edx, edx
mov ebp, eax
movzx eax, byte [edi + edx + 1]
mov byte [ecx + edx + 1], al
add edx, 1
cmp esi, edx
jne 0x10052b52
mov eax, ebp
mov ebp, dword [esp + 0x54]
add ebp, dword [esp + 0x2c]
mov edx, ebp
sub edx, dword [esp + 0x30]
jmp 0x10052827
movzx edx, byte [edi + 2]
add edi, 2
add ebx, 0x10
mov dword [esp + 0x14], edi
shl edx, cl
add eax, edx
jmp 0x100526c1
mov ebp, ecx
jmp 0x10052562
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x54]
add edx, dword [esp + 0x34]
cmp dword [esp + 0x18], esi
jbe 0x10052827
mov ecx, dword [esp + 0x5c]
sub dword [esp + 0x18], esi
mov esi, dword [esp + 0x2c]
sub ecx, ebp
sub esi, ecx
mov ecx, dword [esp + 0x54]
sub esi, dword [esp + 0x64]
sub esi, edi
add esi, dword [esp + 0x38]
shr ecx, 2
mov dword [esp + 0x74], ecx
shl ecx, 2
lea edi, [esi + 1]
test ecx, ecx
mov dword [esp + 0x68], edi
lea edi, [ebp + 1]
mov dword [esp + 0x64], ecx
je 0x10052cd5
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x54], 9
seta byte [esp + 0x6c]
or ecx, edi
and ecx, 3
sete cl
and byte [esp + 0x6c], cl
lea ecx, [esi + 5]
cmp edi, ecx
seta byte [esp + 0x78]
lea ecx, [ebp + 5]
cmp dword [esp + 0x68], ecx
seta cl
or byte [esp + 0x78], cl
movzx ecx, byte [esp + 0x78]
test byte [esp + 0x6c], cl
je 0x10052cd5
mov edi, dword [esp + 0x74]
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + ecx*4 + 1]
mov dword [ebp + ecx*4 + 1], eax
add ecx, 1
cmp edi, ecx
ja 0x10052c34
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
sub edi, dword [esp + 0x64]
add esi, ebp
mov eax, dword [esp + 0x6c]
add edx, dword [esp + 0x64]
cmp dword [esp + 0x54], ecx
je 0x1005281d
mov dword [esp + 0x64], ebp
xor ecx, ecx
mov ebp, eax
movzx eax, byte [edx + ecx + 1]
mov byte [esi + ecx + 1], al
add ecx, 1
cmp edi, ecx
jne 0x10052c6f
jmp 0x10052817
add ebp, 1
jmp 0x10052562
add ebp, 4
nop
jmp 0x10052562
mov ebp, edx
mov edx, dword [esp + 0x34]
jmp 0x10052827
mov esi, dword [esp + 0x98]
mov dword [esi + 0x18], str.invalid_distance_too_far_back
mov dword [edx], 0x1d
jmp 0x10052576
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x6c]
jmp 0x10052b4e
mov edi, dword [esp + 0x54]
mov esi, ebp
jmp 0x100527ff
mov edi, dword [esp + 0x54]
mov esi, ebp
jmp 0x10052c67
mov esi, dword [esp + 0x54]
mov dword [esp + 0x68], esi
mov esi, ebp
jmp 0x10052a77