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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
mov edx, dword [esp + 0xb4]
mov esi, dword [edx + 0x1c]
mov dword [esp + 0x7c], esi
mov ecx, dword [edx]
mov dword [esp + 0x98], ecx
mov eax, dword [edx + 4]
lea eax, [eax + ecx - 5]
mov dword [esp + 0x84], eax
mov cl, byte [esi + 0x58]
mov edi, 1
mov ebp, 1
shl ebp, cl
mov cl, byte [esi + 0x5c]
shl edi, cl
mov ebx, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
lea ecx, [edx + ebx - 0x101]
mov dword [esp + 0x88], ecx
sub edx, dword [esp + 0xb8]
mov dword [esp + 0x9c], edx
dec ebp
mov dword [esp + 0x80], ebp
dec edi
mov dword [esp + 0x70], edi
lea ecx, [ebx + edx]
mov dword [esp + 0x74], ecx
mov edx, dword [esi + 0x34]
mov dword [esp + 0x6c], edx
mov edi, ecx
sub edi, edx
mov dword [esp + 0x58], edi
mov ebp, dword [esi + 0x2c]
mov dword [esp + 0x5c], ebp
mov edi, ebp
sub edi, ecx
mov esi, dword [esi + 0x38]
mov dword [esp + 0x68], esi
add edi, esi
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x9c]
lea edi, [ebx + eax - 1]
mov dword [esp + 0x4c], edi
sub edi, edx
mov dword [esp + 0x3c], edi
lea edi, [edx + ebp]
mov dword [esp + 0x54], edi
sub edi, ecx
add edi, esi
mov dword [esp + 0x38], edi
mov edi, edx
sub edi, ecx
add edi, esi
mov dword [esp + 0x34], edi
mov eax, edx
and eax, 0xffffffe0
mov dword [esp + 0x44], eax
mov edi, edx
sub edi, eax
mov dword [esp + 0x24], edi
lea edi, [edx + 0x10]
sub edi, ecx
add edi, esi
mov dword [esp + 0x2c], edi
lea edi, [edx + ebp + 0x10]
sub edi, ecx
add edi, esi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x9c]
lea edi, [ebx + edi + 0x10]
sub edi, edx
mov dword [esp + 0x20], edi
lea edi, [ebp + 0x10]
sub edi, ecx
add edi, esi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x7c]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x64], ecx
mov ecx, edi
mov edi, dword [ecx + 0x3c]
mov dword [esp + 0x8c], edi
mov edi, dword [ecx + 0x40]
mov dword [esp + 0x78], edi
mov edi, ecx
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edi + 0x54]
mov dword [esp + 0x90], ecx
lea ecx, [ebp + esi - 1]
mov dword [esp + 0x50], ecx
mov ebp, dword [esp + 0x8c]
lea ecx, [edx + esi - 1]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x78]
lea eax, [esi + eax]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x18], eax
jmp 0x652880
mov dword [esp + 0x8c], ebp
movzx ebp, bx
and edx, 0xf
je 0x652202
mov ebx, edi
cmp ebx, edx
mov esi, dword [esp + 0x98]
jae 0x65220d
movzx eax, byte [esi]
inc esi
mov cl, bl
shl eax, cl
mov edi, dword [esp + 0x8c]
add edi, eax
add ebx, 8
jmp 0x652214
mov esi, dword [esp + 0x98]
mov edx, edi
jmp 0x652231
mov edi, dword [esp + 0x8c]
mov eax, 1
mov cl, dl
shl eax, cl
dec eax
and eax, edi
add ebp, eax
mov cl, dl
shr edi, cl
mov dword [esp + 0x8c], edi
sub ebx, edx
mov edx, ebx
cmp edx, 0xe
ja 0x652260
movzx eax, byte [esi]
mov cl, dl
shl eax, cl
add eax, dword [esp + 0x8c]
lea ecx, [edx + 8]
movzx edi, byte [esi + 1]
add esi, 2
mov dword [esp + 0x98], esi
shl edi, cl
add edi, eax
add edx, 0x10
mov esi, edx
jmp 0x652270
mov dword [esp + 0x98], esi
mov esi, edx
mov edi, dword [esp + 0x8c]
mov edx, edi
and edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x90]
movzx ecx, byte [ebx + edx*4 + 1]
shr edi, cl
sub esi, ecx
movzx eax, word [ebx + edx*4 + 2]
movzx edx, byte [ebx + edx*4]
test dl, 0x10
mov ebx, esi
mov esi, edi
jne 0x6522d8
nop dword [eax + eax]
test dl, 0x40
jne 0x65299a
movzx eax, ax
mov edi, 1
mov cl, dl
shl edi, cl
dec edi
and edi, esi
add edi, eax
mov edx, dword [esp + 0x90]
movzx ecx, byte [edx + edi*4 + 1]
movzx eax, word [edx + edi*4 + 2]
shr esi, cl
sub ebx, ecx
movzx edx, byte [edx + edi*4]
test dl, 0x10
je 0x6522a0
movzx eax, ax
mov dword [esp + 0x60], eax
and edx, 0xf
cmp ebx, edx
jae 0x652318
mov edi, dword [esp + 0x98]
movzx eax, byte [edi]
mov cl, bl
shl eax, cl
add eax, esi
lea ecx, [ebx + 8]
cmp ecx, edx
jae 0x65232b
movzx esi, byte [edi + 1]
add edi, 2
mov dword [esp + 0x98], edi
shl esi, cl
add eax, esi
add ebx, 0x10
mov dword [esp + 0x78], ebx
jmp 0x65231e
mov dword [esp + 0x78], ebx
mov eax, esi
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x60]
jmp 0x652342
inc edi
mov dword [esp + 0x98], edi
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x78], ecx
mov edi, 1
mov cl, dl
shl edi, cl
dec edi
and edi, eax
lea esi, [edi + esi]
mov cl, dl
shr eax, cl
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x78]
sub ecx, edx
mov eax, ebx
sub eax, dword [esp + 0x74]
mov ebx, esi
sub ebx, eax
mov edx, ecx
jbe 0x6523fa
mov dword [esp + 0x78], edx
cmp ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
jbe 0x652393
mov eax, dword [esp + 0x7c]
cmp dword [eax + 0x1bc4], 0
jne 0x652a23
test edx, edx
je 0x65244c
mov ecx, edx
sub ecx, ebx
jae 0x6524ac
mov ecx, dword [esp + 0x54]
sub ecx, ebx
add ecx, dword [esp + 0x68]
sub ebx, edx
mov eax, ebp
sub eax, ebx
jbe 0x6524f3
mov dword [esp + 8], eax
mov edx, esi
mov eax, dword [esp + 0x94]
sub edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
lea edx, [edx + edi]
add edx, dword [esp + 0x60]
sub edx, eax
cmp edx, 0x20
mov ebp, dword [esp + 0x8c]
jae 0x652564
mov dword [esp + 0x14], esi
mov edx, eax
mov edi, dword [esp + 0xc]
jmp 0x6526d0
neg esi
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
nop word [eax + eax]
mov eax, ebx
mov cl, byte [esi + eax]
mov byte [eax], cl
mov cl, byte [esi + eax + 1]
mov byte [eax + 1], cl
mov cl, byte [esi + eax + 2]
lea ebx, [eax + 3]
mov byte [eax + 2], cl
add ebp, 0xfffffffd
cmp ebp, 2
ja 0x652410
test ebp, ebp
je 0x65249e
mov cl, byte [ebx + esi]
mov byte [ebx], cl
cmp ebp, 2
jb 0x652499
mov cl, byte [ebx + esi + 1]
add eax, 5
mov byte [ebx + 1], cl
mov ebx, eax
jmp 0x65249e
mov ecx, dword [esp + 0x5c]
sub ecx, ebx
add ecx, dword [esp + 0x68]
mov edx, ebp
sub edx, ebx
jbe 0x6524f3
mov ebp, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x94]
sub ebp, eax
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], edi
lea esi, [esi + edi]
mov edi, dword [esp + 0x60]
add esi, edi
sub esi, eax
cmp esi, 0x20
mov ebp, dword [esp + 0x8c]
jae 0x65250f
mov esi, eax
jmp 0x652660
add eax, 4
mov ebx, eax
mov ebp, dword [esp + 0x8c]
mov esi, edi
jmp 0x652945
add ecx, dword [esp + 0x68]
mov edx, ebp
sub edx, ebx
jbe 0x6524f3
mov ebp, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x94]
sub ebp, eax
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], edi
lea esi, [esi + edi]
mov edi, dword [esp + 0x60]
add esi, edi
sub esi, eax
cmp esi, 0x20
mov ebp, dword [esp + 0x8c]
jae 0x6525bf
mov esi, eax
jmp 0x652790
mov edx, ebp
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x8c]
jmp 0x6527e3
mov eax, esi
and eax, 0xffffffe0
je 0x652614
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [esp + 0x94]
mov esi, eax
sub esi, dword [esp + 0x10]
sub esi, edi
mov edi, esi
cmp eax, dword [esp + 0x50]
ja 0x65261d
mov esi, dword [esp + 0x4c]
lea esi, [eax + esi]
add esi, dword [esp + 0xc]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x40]
lea esi, [esi + edi]
cmp esi, dword [esp + 0x60]
ja 0x65261d
mov esi, eax
jmp 0x652660
mov dword [esp + 0x14], esi
mov eax, edx
and eax, 0xffffffe0
mov dword [esp + 4], eax
je 0x65266e
mov dword [esp], edx
mov esi, dword [esp + 0x94]
mov ebp, esi
sub ebp, edi
sub ebp, dword [esp + 0x60]
cmp esi, dword [esp + 0x50]
ja 0x652687
mov eax, dword [esp + 0x3c]
lea eax, [esi + eax]
add eax, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
lea edx, [edx + ebp]
cmp edx, eax
ja 0x652687
mov edx, esi
mov ebp, dword [esp + 0x8c]
mov edi, dword [esp + 0xc]
jmp 0x6526d0
mov eax, esi
and eax, 0xffffffe0
je 0x65267b
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [esp + 0x94]
mov esi, eax
sub esi, dword [esp + 0x10]
sub esi, edi
mov edi, esi
cmp eax, dword [esp + 0x48]
ja 0x652746
mov esi, dword [esp + 0x4c]
lea esi, [eax + esi]
add esi, dword [esp + 0xc]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x34]
lea esi, [esi + edi]
cmp esi, dword [esp + 0x60]
ja 0x652746
mov esi, eax
jmp 0x652790
mov esi, dword [esp + 0x94]
jmp 0x652660
mov ebp, dword [esp + 8]
lea esi, [eax + ebp]
sub ebx, ebp
add ecx, ebp
add edi, dword [esp + 0x30]
lea eax, [eax + 0x10]
nop
movups xmm0, xmmword [edi - 0x10]
movups xmm1, xmmword [edi]
movups xmmword [eax - 0x10], xmm0
movups xmmword [eax], xmm1
add edi, 0x20
add eax, 0x20
add ebp, 0xffffffe0
jne 0x652630
mov eax, dword [esp + 8]
cmp dword [esp + 4], eax
mov ebp, dword [esp + 0x8c]
je 0x652799
nop
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
dec ebx
jne 0x652660
jmp 0x652799
mov edx, dword [esp + 0x94]
mov edi, dword [esp + 0xc]
jmp 0x6526d0
mov esi, dword [esp + 0x94]
jmp 0x652790
mov edi, dword [esp + 4]
lea edx, [esi + edi]
sub ebx, edi
add ecx, edi
add ebp, dword [esp + 0x28]
lea eax, [esi + 0x10]
mov esi, edi
nop dword [eax + eax]
movups xmm0, xmmword [ebp - 0x10]
movups xmm1, xmmword [ebp]
movups xmmword [eax - 0x10], xmm0
movups xmmword [eax], xmm1
add ebp, 0x20
add eax, 0x20
add esi, 0xffffffe0
jne 0x6526a0
cmp dword [esp], edi
mov ebp, dword [esp + 0x8c]
mov edi, dword [esp + 0xc]
je 0x6526d9
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
dec ebx
jne 0x6526d0
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x58]
lea ecx, [esi + eax]
add ecx, edi
mov ebx, edi
mov edi, dword [esp + 8]
mov edx, edi
mov eax, dword [esp + 0x6c]
sub edx, eax
jbe 0x652739
cmp eax, 0x20
jb 0x6527ae
cmp dword [esp + 0x44], 0
je 0x6527aa
cmp ecx, dword [esp + 0x48]
mov edi, ebx
ja 0x652830
mov eax, dword [esp + 0x4c]
lea eax, [esi + eax]
add eax, edi
cmp dword [esp + 0x68], eax
ja 0x652830
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
jmp 0x6527c0
mov ebx, ecx
mov edx, edi
mov ecx, dword [esp + 0x68]
jmp 0x6527dc
mov ebp, dword [esp + 8]
lea esi, [eax + ebp]
sub ebx, ebp
add ecx, ebp
add edi, dword [esp + 0x2c]
lea eax, [eax + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [edi - 0x10]
movups xmm1, xmmword [edi]
movups xmmword [eax - 0x10], xmm0
movups xmmword [eax], xmm1
add edi, 0x20
add eax, 0x20
add ebp, 0xffffffe0
jne 0x652760
mov eax, dword [esp + 8]
cmp dword [esp + 4], eax
mov ebp, dword [esp + 0x8c]
je 0x652799
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
dec ebx
jne 0x652790
mov ebx, dword [esp + 0x94]
add ebx, dword [esp + 0x74]
add ebx, dword [esp + 0xc]
jmp 0x6527d6
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov edi, ebx
nop word cs:[eax + eax]
mov bl, byte [esi]
inc esi
mov byte [ecx], bl
inc ecx
dec eax
jne 0x6527c0
mov ebx, dword [esp + 0x94]
add ebx, dword [esp + 0x74]
add ebx, edi
mov ecx, ebx
sub ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x98]
cmp edx, 3
jb 0x65280e
nop dword [eax + eax]
mov al, byte [ecx]
mov byte [ebx], al
mov al, byte [ecx + 1]
mov byte [ebx + 1], al
mov al, byte [ecx + 2]
add ecx, 3
mov byte [ebx + 2], al
add ebx, 3
add edx, 0xfffffffd
cmp edx, 2
ja 0x6527f0
test edx, edx
je 0x652827
mov al, byte [ecx]
mov byte [ebx], al
cmp edx, 2
jb 0x652826
mov al, byte [ecx + 1]
mov byte [ebx + 1], al
add ebx, 2
jmp 0x652827
inc ebx
mov edx, dword [esp + 0x78]
jmp 0x652945
mov ebx, dword [esp + 0x44]
add ecx, ebx
mov eax, dword [esp + 0x20]
lea eax, [esi + eax]
add eax, edi
mov esi, ebx
mov ebx, dword [esp + 0x18]
movups xmm0, xmmword [ebx - 0x10]
movups xmm1, xmmword [ebx]
movups xmmword [eax - 0x10], xmm0
movups xmmword [eax], xmm1
add ebx, 0x20
add eax, 0x20
add esi, 0xffffffe0
jne 0x652845
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
je 0x6527c9
jmp 0x6527c0
cmp edx, 0xe
ja 0x6528b0
mov dword [esp + 0x94], ebx
movzx eax, byte [esi]
mov cl, dl
shl eax, cl
add eax, ebp
lea ecx, [edx + 8]
movzx ebp, byte [esi + 1]
add esi, 2
mov dword [esp + 0x98], esi
shl ebp, cl
add ebp, eax
add edx, 0x10
jmp 0x6528be
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], esi
mov esi, edx
mov edx, ebp
and edx, dword [esp + 0x80]
mov edi, dword [esp + 0x9c]
mov al, byte [edi + edx*4]
movzx ecx, byte [edi + edx*4 + 1]
movzx ebx, word [edi + edx*4 + 2]
shr ebp, cl
sub esi, ecx
test al, al
mov edx, esi
je 0x652932
nop word [eax + eax]
mov edi, edx
movzx edx, al
test dl, 0x10
jne 0x6521d0
test dl, 0x40
jne 0x65295d
movzx eax, bx
mov esi, 1
mov cl, dl
shl esi, cl
dec esi
and esi, ebp
add esi, eax
mov edx, dword [esp + 0x9c]
mov al, byte [edx + esi*4]
movzx ecx, byte [edx + esi*4 + 1]
movzx ebx, word [edx + esi*4 + 2]
shr ebp, cl
mov edx, edi
sub edx, ecx
test al, al
jne 0x6528f0
mov eax, dword [esp + 0x94]
mov byte [eax], bl
mov ebx, eax
inc ebx
mov esi, dword [esp + 0x98]
cmp ebx, dword [esp + 0x88]
jae 0x6529c5
cmp esi, dword [esp + 0x84]
jb 0x652880
jmp 0x6529c5
test dl, 0x20
jne 0x65297d
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov eax, dword [esp + 0x7c]
mov dword [eax + 4], 0x3f51
jmp 0x652988
mov eax, dword [esp + 0x7c]
mov dword [eax + 4], 0x3f3f
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
mov edx, edi
jmp 0x6529c5
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x18], str.invalid_distance_code
mov eax, dword [esp + 0x7c]
mov dword [eax + 4], 0x3f51
mov edx, ebx
mov ebp, esi
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
mov eax, edx
shr eax, 3
sub esi, eax
mov ecx, dword [esp + 0xb4]
mov edi, esi
mov esi, ecx
mov dword [esi], edi
mov ecx, edx
mov edx, dword [esp + 0x84]
add edx, 5
sub edx, edi
mov dword [esi + 0xc], ebx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x88]
add edx, 0x101
sub edx, ebx
mov dword [esi + 0x10], edx
shl eax, 3
sub ecx, eax
mov eax, 1
shl eax, cl
dec eax
and eax, ebp
mov edx, dword [esp + 0x7c]
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], ecx
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xb4]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov eax, dword [esp + 0x7c]
mov dword [eax + 4], 0x3f51
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x8c]
jmp 0x6529c5