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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov ebx, dword [esp + 0xa0]
cmp ebx, 0xa
jb 0x5789a2
mov esi, dword [esp + 0x9c]
movzx edi, word [esi]
movzx eax, word [esi + 2]
movzx esi, word [esi + 4]
mov dword [esp + 0xc], eax
add eax, edi
add eax, 6
mov dword [esp + 0x24], esi
add eax, esi
sub ebx, eax
jb 0x5789a2
lea ebp, [ecx + edx]
lea eax, [edx + 3]
shr eax, 2
lea esi, [ecx + eax]
mov dword [esp + 0x14], esi
add esi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], esi
add esi, eax
mov dword [esp + 0x6c], ebp
cmp esi, ebp
ja 0x5789a2
mov eax, 0xffffffb8
test edi, edi
je 0x5789a7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x58], ecx
mov esi, dword [esp + 0xa4]
movzx ecx, word [esi + 2]
mov dword [esp + 0x70], ecx
mov ebx, dword [esp + 0x9c]
cmp di, 4
jb 0x578389
movzx esi, byte [ebx + edi + 5]
test esi, esi
je 0x578576
lea ecx, [edi + 2]
mov dword [esp], ecx
mov ecx, dword [ebx + ecx]
mov dword [esp + 0x34], ecx
bsr esi, esi
xor esi, 0x1f
add esi, 0xffffffe9
mov dword [esp + 4], esi
jmp 0x5783d9
movzx ecx, byte [ebx + 6]
cmp di, 2
je 0x5783a2
cmp di, 3
jne 0x5783ab
movzx esi, byte [ebx + 8]
shl esi, 0x10
or ecx, esi
movzx esi, byte [ebx + 7]
shl esi, 8
add ecx, esi
movzx esi, byte [ebx + edi + 5]
test esi, esi
je 0x5789a2
mov dword [esp + 0x34], ecx
bsr ecx, esi
xor ecx, 0x1f
lea esi, [edi*8]
sub ecx, esi
add ecx, 9
mov dword [esp + 4], ecx
mov dword [esp], 6
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x5789a7
lea esi, [ebx + edi]
add esi, 6
cmp bp, 4
mov ebx, ebp
jb 0x57841d
movzx ecx, byte [ebx + esi - 1]
test ecx, ecx
mov ebp, dword [esp + 0x24]
je 0x578576
lea edi, [ebx - 4]
mov dword [esp + 0x44], edi
mov edi, dword [esi + edi]
mov dword [esp + 0x1c], edi
bsr ecx, ecx
xor ecx, 0x1f
add ecx, 0xffffffe9
jmp 0x57847d
movzx ecx, byte [esi]
mov dword [esp + 0x1c], ecx
cmp bx, 2
mov ebp, dword [esp + 0x24]
je 0x578443
cmp bx, 3
jne 0x578454
movzx ecx, byte [esi + 2]
shl ecx, 0x10
mov edi, dword [esp + 0x1c]
or edi, ecx
jmp 0x578447
mov edi, dword [esp + 0x1c]
movzx ecx, byte [esi + 1]
shl ecx, 8
add edi, ecx
mov dword [esp + 0x1c], edi
movzx ecx, byte [ebx + esi - 1]
test ecx, ecx
je 0x5789a2
bsr edi, ecx
xor edi, 0x1f
lea ecx, [ebx*8]
sub edi, ecx
mov ecx, edi
add ecx, 9
mov dword [esp + 0x44], 0
test ebp, ebp
je 0x5789a7
add ebx, esi
cmp bp, 4
mov dword [esp + 8], ecx
jb 0x5784c3
movzx ecx, byte [ebp + ebx - 1]
test ecx, ecx
je 0x578576
mov dword [esp + 0x3c], esi
lea esi, [ebp - 4]
mov dword [esp + 0x64], esi
mov ebp, dword [ebx + esi]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x24]
bsr ecx, ecx
xor ecx, 0x1f
add ecx, 0xffffffe9
mov dword [esp + 0x54], ecx
jmp 0x57851b
mov dword [esp + 0x3c], esi
movzx esi, byte [ebx]
cmp bp, 2
je 0x5784df
cmp bp, 3
jne 0x5784e8
movzx ecx, byte [ebx + 2]
shl ecx, 0x10
or esi, ecx
movzx ecx, byte [ebx + 1]
shl ecx, 8
add esi, ecx
mov ebp, dword [esp + 0x24]
movzx ecx, byte [ebp + ebx - 1]
test ecx, ecx
je 0x5789a2
mov dword [esp + 0x4c], esi
bsr esi, ecx
xor esi, 0x1f
lea ecx, [ebp*8]
sub esi, ecx
add esi, 9
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], 0
mov esi, dword [esp + 0x68]
test esi, esi
je 0x5789a7
add ebp, ebx
cmp esi, 4
jb 0x578580
movzx eax, byte [esi + ebp - 1]
test eax, eax
mov ecx, edx
mov edx, dword [esp + 0x6c]
je 0x578576
cmp esi, 0xffffff88
ja 0x5789b2
mov dword [esp + 0x74], ecx
mov ecx, ebp
mov ebp, ebx
mov dword [esp + 0x24], ecx
mov ebx, dword [ecx + esi - 4]
mov dword [esp + 0x30], ebx
add esi, 0xfffffffc
mov dword [esp + 0x68], esi
bsr edi, eax
xor edi, 0x1f
add edi, 0xffffffe9
mov esi, dword [esp + 0xa4]
jmp 0x5785fd
mov eax, 0xffffffff
jmp 0x5789a7
movzx eax, byte [ebp]
mov dword [esp + 0x30], eax
cmp esi, 2
mov eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
je 0x5785b4
cmp esi, 3
mov esi, dword [esp + 0xa4]
jne 0x5785d0
movzx eax, byte [ebp + 2]
shl eax, 0x10
mov ecx, ebp
mov ebp, dword [esp + 0x30]
or ebp, eax
jmp 0x5785c1
mov esi, dword [esp + 0xa4]
mov ecx, ebp
mov ebp, dword [esp + 0x30]
movzx eax, byte [ecx + 1]
shl eax, 8
add ebp, eax
mov dword [esp + 0x30], ebp
mov ebp, ecx
mov ecx, dword [esp + 0x68]
movzx eax, byte [ecx + ebp - 1]
test eax, eax
je 0x5789a2
mov dword [esp + 0x24], ebp
mov ebp, ebx
bsr edi, eax
xor edi, 0x1f
shl ecx, 3
sub edi, ecx
add edi, 9
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x74]
lea ebx, [eax + ecx]
add ebx, 0xfffffffd
add esi, 4
mov dword [esp + 0x18], esi
mov eax, edx
mov esi, dword [esp + 0x5c]
sub eax, esi
cmp eax, 4
mov dword [esp + 0xc], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x10], edi
jb 0x57891c
cmp esi, ebx
jae 0x57891c
mov eax, dword [esp + 0x70]
neg eax
and eax, 0x1f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*2]
mov dword [esp + 0x40], eax
mov dword [esp + 0x80], 1
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x78], eax
mov ecx, dword [esp]
mov dword [esp], ecx
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 4]
shl edi, cl
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
shr edi, cl
mov ecx, dword [esp + 8]
mov ebp, dword [esp + 0x1c]
shl ebp, cl
mov ecx, ebx
shr ebp, cl
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
shl esi, cl
mov ecx, ebx
shr esi, cl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
shl eax, cl
mov ecx, ebx
shr eax, cl
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + edi*2]
add eax, dword [esp + 4]
mov ecx, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
shl eax, cl
mov ecx, ebx
shr eax, cl
movzx ecx, byte [edx + edi*2 + 1]
mov ebx, dword [esp + 0x78]
mov byte [ebx], cl
movzx ecx, byte [edx + ebp*2]
add ecx, dword [esp + 8]
mov edi, dword [esp + 0x1c]
mov dword [esp + 8], ecx
shl edi, cl
mov ecx, dword [esp + 0x2c]
shr edi, cl
mov dword [esp + 0x28], edi
movzx ecx, byte [edx + ebp*2 + 1]
mov edi, dword [esp + 0x38]
mov byte [ebx + edi], cl
movzx ecx, byte [edx + esi*2]
add ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
shl ebp, cl
mov ecx, dword [esp + 0x2c]
shr ebp, cl
movzx ecx, byte [edx + esi*2 + 1]
mov byte [ebx + edi*2], cl
mov edi, dword [esp + 0x48]
movzx ecx, byte [edx + edi*2]
add ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
shl esi, cl
movzx ecx, byte [edx + edi*2 + 1]
mov edi, dword [esp + 0x40]
mov byte [ebx + edi], cl
movzx edi, byte [edx + eax*2]
add edi, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
shr esi, cl
movzx eax, byte [edx + eax*2 + 1]
mov byte [ebx + 1], al
mov ecx, dword [esp + 0x28]
movzx eax, byte [edx + ecx*2 + 1]
movzx ecx, byte [edx + ecx*2]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov byte [ebx + ecx + 1], al
movzx eax, byte [edx + ebp*2 + 1]
movzx ebp, byte [edx + ebp*2]
mov byte [ebx + ecx*2 + 1], al
movzx eax, byte [edx + esi*2 + 1]
movzx edx, byte [edx + esi*2]
mov dword [esp + 0x78], edx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x40]
mov byte [ebx + ecx + 1], al
mov ebx, ecx
mov eax, dword [esp]
cmp eax, 0xa
jl 0x5788e0
mov edx, edi
shr edx, 3
sub eax, edx
and edi, 7
mov dword [esp + 4], edi
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + eax]
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 8]
add eax, dword [esp + 0x28]
mov ecx, eax
cmp esi, 4
mov eax, dword [esp + 0x54]
jl 0x5788ed
mov edx, ecx
shr edx, 3
sub esi, edx
and ecx, 7
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], esi
mov ecx, dword [ecx + esi]
mov dword [esp + 0x1c], ecx
add eax, ebp
mov esi, dword [esp + 0x64]
cmp esi, 4
jl 0x578904
mov ecx, eax
shr ecx, 3
mov edx, esi
sub edx, ecx
and eax, 7
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], edx
mov eax, dword [edi + edx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
lea ecx, [eax + ebx]
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 0x78]
xor eax, eax
cmp esi, 4
setge dl
mov ebp, dword [esp + 0x84]
cmp ebp, 4
jl 0x578911
mov edi, ebx
shr edi, 3
mov esi, ebx
mov ebx, ebp
sub ebx, edi
and esi, 7
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
mov edi, dword [edi + ebx]
mov dword [esp + 0x30], edi
mov dword [esp + 0x68], ebx
mov edi, ebx
xor ebx, ebx
cmp ebp, 4
mov al, dl
setge bl
cmp dword [esp + 0x44], 4
setge dl
cmp dword [esp], 0xa
setge dh
mov esi, dword [esp + 0x80]
and esi, ebx
and esi, eax
and dh, dl
movzx eax, dh
and esi, eax
add ecx, 2
xor eax, eax
cmp ecx, dword [esp + 0x7c]
setb al
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 2]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x64], edx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
mov ebp, dword [esp + 0x60]
mov ecx, ebp
mov dword [esp + 0x80], esi
test esi, eax
jne 0x578669
jmp 0x578941
mov dword [esp + 4], edi
mov dword [esp + 0x60], eax
jmp 0x5787c7
mov dword [esp + 8], ecx
mov dword [esp + 0x50], esi
add eax, ebp
mov esi, dword [esp + 0x64]
cmp esi, 4
jge 0x578812
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], esi
jmp 0x57882d
mov dword [esp + 0x10], ebx
mov edi, ebp
jmp 0x578877
mov ebp, dword [esp]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x58]
jmp 0x57895e
add ebx, 2
mov eax, dword [esp + 0x38]
lea ecx, [ebx + eax]
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + eax*2]
add dword [esp + 0x40], ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x48], ebx
cmp ebx, edi
ja 0x5789a2
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x20]
ja 0x5789a2
mov eax, 0xffffffec
cmp ecx, esi
ja 0x5789a7
mov esi, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x48]
cmp eax, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], ecx
jl 0x5789b6
mov ebx, dword [esp + 4]
cmp ebx, 0x20
jbe 0x5789ce
mov ecx, dword [esp + 8]
jmp 0x578aaa
mov eax, 0xffffffec
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, esi
jmp 0x5789a7
cmp dword [esp + 4], 0x20
jbe 0x578ac0
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 4]
jmp 0x578aaa
mov eax, dword [esp + 0x14]
add eax, 0xfffffffd
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
neg eax
and eax, 0x1f
mov dword [esp], eax
cmp ebp, 0xa
jge 0x578a1d
cmp ebp, 6
je 0x578b53
mov edx, ebx
shr edx, 3
mov esi, ebp
mov edi, ebx
mov ebx, ebp
sub ebx, edx
lea eax, [ebp - 6]
xor ecx, ecx
cmp ebx, 6
setl cl
cmovge eax, edx
lea edx, [eax*8]
sub edi, edx
mov dword [esp + 4], edi
jmp 0x578a2b
mov eax, ebx
shr eax, 3
and ebx, 7
mov dword [esp + 4], ebx
xor ecx, ecx
mov edx, dword [esp + 0x9c]
sub ebp, eax
mov ebx, dword [edx + ebp]
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x48], eax
mov edx, dword [esp]
mov dword [esp + 0x34], ebx
jae 0x578b02
test ecx, ecx
jne 0x578b02
mov eax, edx
mov edx, ebx
mov ecx, dword [esp + 4]
mov edi, ecx
shl edx, cl
mov ecx, eax
shr edx, cl
mov esi, ebp
mov ebp, dword [esp + 0x18]
movzx eax, byte [ebp + edx*2]
add eax, edi
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp]
shr ebx, cl
movzx ecx, byte [ebp + edx*2 + 1]
mov edx, dword [esp + 0x48]
mov byte [edx], cl
movzx ecx, byte [ebp + ebx*2 + 1]
movzx ebx, byte [ebp + ebx*2]
mov ebp, esi
add ebx, eax
mov byte [edx + 1], cl
add edx, 2
mov dword [esp + 0x48], edx
cmp ebx, 0x20
mov ecx, dword [esp + 8]
jbe 0x5789e5
mov edx, dword [esp + 0x70]
neg edx
and edx, 0x1f
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
jmp 0x578c17
cmp ebp, 0xa
jge 0x578ae5
cmp ebp, 6
mov ebx, dword [esp + 0x9c]
jne 0x578b10
mov edx, dword [esp + 0x70]
neg edx
and edx, 0x1f
mov ebp, 6
mov ebx, dword [esp + 4]
jmp 0x578b63
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 3
and ecx, 7
mov dword [esp + 4], ecx
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
jmp 0x578b33
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
jmp 0x578b45
mov ecx, dword [esp + 4]
shr ecx, 3
mov edx, ebp
sub edx, ecx
lea eax, [ebp - 6]
cmp edx, 6
cmovge eax, ecx
lea ecx, [eax*8]
sub dword [esp + 4], ecx
mov ecx, dword [esp + 8]
sub ebp, eax
mov eax, dword [ebx + ebp]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x70]
neg edx
and edx, 0x1f
mov ebx, dword [esp + 4]
cmp ebx, 0x20
jbe 0x578b63
jmp 0x578c17
mov ebp, 6
mov edx, dword [esp]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov dword [esp], edx
cmp ebp, 0xa
jge 0x578b9e
cmp ebp, 6
je 0x578c0b
mov edx, ebx
shr edx, 3
mov edi, ebp
sub edi, edx
lea ecx, [ebp - 6]
xor eax, eax
cmp edi, 6
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
setl al
cmovge ecx, edx
lea edx, [ecx*8]
sub ebx, edx
jmp 0x578ba8
mov ecx, ebx
shr ecx, 3
and ebx, 7
xor eax, eax
sub ebp, ecx
mov ecx, dword [esp + 0x9c]
mov ecx, dword [ecx + ebp]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x48], esi
mov edx, dword [esp]
jae 0x578bfa
test eax, eax
jne 0x578bfa
mov eax, dword [esp + 0x34]
mov ecx, ebx
shl eax, cl
mov ecx, edx
shr eax, cl
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + eax*2 + 1]
movzx eax, byte [edx + eax*2]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x48]
mov byte [eax], cl
add eax, 1
mov dword [esp + 0x48], eax
cmp ebx, 0x20
jbe 0x578b66
jmp 0x578c10
mov eax, dword [esp + 0x48]
cmp eax, esi
mov ecx, dword [esp + 8]
jb 0x578c23
jmp 0x578cd3
mov ebp, 6
mov ecx, dword [esp + 8]
mov edx, dword [esp]
mov eax, dword [esp + 0x48]
cmp eax, esi
jae 0x578cd3
mov dword [esp], edx
mov ecx, esi
sub ecx, eax
lea edx, [eax + 1]
test cl, 1
mov dword [esp + 0x60], ebp
jne 0x578c3e
mov ecx, eax
mov ebp, dword [esp + 0x24]
jmp 0x578c6e
mov dword [esp + 4], edx
mov edx, dword [esp + 0x34]
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp]
shr edx, cl
mov ebp, dword [esp + 0x18]
mov cl, byte [ebp + edx*2 + 1]
movzx edx, byte [ebp + edx*2]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov byte [eax], cl
add ebx, edx
mov edx, dword [esp + 4]
mov ecx, edx
cmp esi, edx
jne 0x578c80
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 8]
jmp 0x578cd0
mov ebp, dword [esp + 0x18]
mov esi, ecx
mov edi, dword [esp + 0x34]
mov edx, edi
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp]
shr edx, cl
movzx eax, byte [ebp + edx*2]
add eax, ebx
mov ecx, eax
shl edi, cl
mov ecx, dword [esp]
shr edi, cl
movzx ecx, byte [ebp + edx*2 + 1]
mov byte [esi], cl
movzx ebx, byte [ebp + edi*2]
add ebx, eax
movzx eax, byte [ebp + edi*2 + 1]
mov byte [esi + 1], al
add esi, 2
cmp esi, dword [esp + 0x14]
jne 0x578c86
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp]
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x20]
sub eax, edi
cmp eax, 4
mov dword [esp + 0x60], ebp
mov dword [esp], edx
jl 0x578dca
cmp ecx, 0x20
mov ebx, dword [esp + 0x50]
ja 0x578dd3
mov eax, dword [esp + 0x20]
add eax, 0xfffffffd
mov dword [esp + 0x14], eax
cmp ebx, 4
mov dword [esp + 0x2c], edi
jge 0x578d41
test ebx, ebx
je 0x578e46
mov ebp, dword [esp + 0x3c]
lea edx, [ebx + ebp]
mov eax, ecx
shr eax, 3
sub edx, eax
mov edi, ebx
mov esi, ecx
xor ecx, ecx
cmp edx, ebp
setb cl
cmovb eax, ebx
lea edx, [eax*8]
sub esi, edx
mov dword [esp + 8], esi
jmp 0x578d55
mov eax, ecx
shr eax, 3
and ecx, 7
mov dword [esp + 8], ecx
mov edi, ebx
xor ecx, ecx
mov ebp, dword [esp + 0x3c]
sub edi, eax
mov dword [esp + 0x50], edi
mov ebx, dword [ebp + edi]
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
jae 0x578e26
test ecx, ecx
jne 0x578e26
mov edx, ebx
mov ecx, dword [esp + 8]
mov esi, edi
mov edi, ecx
shl edx, cl
mov ecx, dword [esp]
shr edx, cl
mov ebp, dword [esp + 0x18]
movzx eax, byte [ebp + edx*2]
add eax, edi
mov edi, esi
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp]
shr ebx, cl
movzx ecx, byte [ebp + edx*2 + 1]
mov byte [esi], cl
movzx ecx, byte [ebp + ebx*2 + 1]
movzx edx, byte [ebp + ebx*2]
add edx, eax
mov byte [esi + 1], cl
mov ecx, edx
add edi, 2
cmp edx, 0x20
mov ebx, dword [esp + 0x50]
jbe 0x578d05
jmp 0x578dd3
cmp ecx, 0x20
mov ebx, dword [esp + 0x50]
jbe 0x578de0
add ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
jmp 0x578ef3
cmp ebx, 4
jge 0x578e0f
test ebx, ebx
je 0x578e46
mov edx, dword [esp + 0x3c]
lea ecx, [edx + ebx]
mov eax, dword [esp + 8]
shr eax, 3
sub ecx, eax
cmp ecx, edx
cmovb eax, ebx
lea ecx, [eax*8]
sub dword [esp + 8], ecx
mov ecx, dword [esp + 8]
jmp 0x578e17
mov eax, ecx
shr eax, 3
and ecx, 7
sub ebx, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + ebx]
mov dword [esp + 0x1c], edx
jmp 0x578e32
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
add eax, ebx
mov dword [esp + 0x34], eax
cmp ecx, 0x20
jbe 0x578e50
jmp 0x578ef3
xor ebx, ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
cmp ebx, 4
mov dword [esp + 0x2c], edi
jge 0x578e8f
test ebx, ebx
je 0x578ef3
mov esi, ebx
mov eax, ecx
shr eax, 3
mov edx, dword [esp + 0x34]
sub edx, eax
mov ebx, ecx
xor ecx, ecx
mov edi, dword [esp + 0x3c]
cmp edx, edi
setb cl
cmovb eax, esi
lea edx, [eax*8]
sub ebx, edx
mov dword [esp + 0x14], ebx
mov ebx, esi
jmp 0x578ea3
mov eax, ecx
shr eax, 3
and ecx, 7
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x3c]
sub ebx, eax
lea eax, [edi + ebx]
mov dword [esp + 0x34], eax
mov eax, dword [edi + ebx]
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x20]
mov edx, dword [esp]
mov dword [esp + 0x1c], eax
jae 0x578ef7
test ecx, ecx
jne 0x578ef7
mov esi, ebx
mov ebx, dword [esp + 0x14]
mov ecx, ebx
shl eax, cl
mov ecx, edx
shr eax, cl
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + eax*2 + 1]
movzx eax, byte [edx + eax*2]
add eax, ebx
mov ebx, esi
mov byte [edi], cl
mov ecx, eax
add edi, 1
cmp eax, 0x20
jbe 0x578e50
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
cmp edi, ecx
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x28]
jae 0x578f9c
sub ecx, edi
mov eax, dword [esp + 0x38]
lea eax, [edx + eax*2]
lea edx, [edi + 1]
test cl, 1
jne 0x578f22
mov ebx, dword [esp + 0x14]
jmp 0x578f4e
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ecx, ebx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
mov dword [esp + 0x2c], edi
mov ebp, dword [esp + 0x18]
mov cl, byte [ebp + esi*2 + 1]
movzx esi, byte [ebp + esi*2]
mov edi, dword [esp + 0x2c]
mov byte [edi], cl
add ebx, esi
mov edi, edx
cmp eax, edx
je 0x578f94
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, esi
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp]
shr edx, cl
movzx eax, byte [ebp + edx*2]
add eax, ebx
mov ecx, eax
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
movzx ecx, byte [ebp + edx*2 + 1]
mov byte [edi], cl
movzx ebx, byte [ebp + esi*2]
add ebx, eax
movzx eax, byte [ebp + esi*2 + 1]
mov byte [edi + 1], al
add edi, 2
cmp edi, dword [esp + 0x20]
jne 0x578f56
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
cmp eax, 4
jl 0x57908f
mov eax, dword [esp + 0x54]
cmp eax, 0x20
ja 0x579098
mov eax, dword [esp + 0x5c]
add eax, 0xfffffffd
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
cmp esi, 4
jge 0x579003
test esi, esi
je 0x5790e9
mov edi, dword [esp + 0xc]
lea edx, [edi + esi]
mov ebx, eax
shr eax, 3
sub edx, eax
xor ecx, ecx
cmp edx, edi
setb cl
mov dword [esp + 0x20], ecx
cmovb eax, esi
lea edx, [eax*8]
sub ebx, edx
mov edx, ebx
jmp 0x579019
mov ecx, eax
shr eax, 3
and ecx, 7
mov edx, ecx
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0xc]
sub esi, eax
mov dword [esp + 0x28], esi
mov ebx, esi
mov edi, dword [edi + esi]
mov esi, dword [esp + 0x44]
cmp esi, dword [esp + 0x1c]
jae 0x5790ff
cmp dword [esp + 0x20], 0
mov eax, edx
jne 0x579101
mov edx, edi
mov ecx, eax
shl edx, cl
mov ebx, dword [esp]
mov ecx, ebx
shr edx, cl
mov ecx, eax
movzx eax, byte [ebp + edx*2]
add eax, ecx
mov dword [esp + 0x4c], edi
mov ecx, eax
shl edi, cl
mov ecx, ebx
shr edi, cl
movzx ecx, byte [ebp + edx*2 + 1]
mov byte [esi], cl
movzx ecx, byte [ebp + edi*2 + 1]
movzx edx, byte [ebp + edi*2]
add edx, eax
mov eax, edx
mov byte [esi + 1], cl
add esi, 2
mov dword [esp + 0x44], esi
cmp edx, 0x20
mov esi, dword [esp + 0x28]
jbe 0x578fcd
jmp 0x579098
mov eax, dword [esp + 0x54]
cmp eax, 0x20
jbe 0x5790a9
add esi, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x4c]
jmp 0x5791c2
cmp esi, 4
jge 0x5790d2
test esi, esi
je 0x5790e9
mov ebx, dword [esp + 0xc]
lea ecx, [ebx + esi]
mov edx, eax
shr eax, 3
sub ecx, eax
cmp ecx, ebx
cmovb eax, esi
lea ecx, [eax*8]
sub edx, ecx
mov ecx, edx
jmp 0x5790da
mov ecx, eax
shr eax, 3
and ecx, 7
sub esi, eax
mov edx, esi
mov esi, dword [esp + 0xc]
mov edi, dword [esi + edx]
mov eax, ecx
jmp 0x579109
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x4c]
jmp 0x579119
mov eax, edx
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x28], edx
lea ecx, [esi + edx]
mov dword [esp + 0x1c], ecx
jmp 0x5791b9
mov esi, dword [esp + 0x28]
cmp esi, 4
jge 0x57915b
test esi, esi
je 0x5791c2
mov ecx, eax
shr ecx, 3
mov ebx, dword [esp + 0x1c]
sub ebx, ecx
mov edx, dword [esp + 0xc]
cmp ebx, edx
mov ebx, 0
setb bl
mov edi, ebx
cmovb ecx, esi
mov ebx, eax
lea eax, [ecx*8]
sub ebx, eax
mov dword [esp + 0x20], ebx
mov ebx, edi
jmp 0x57916d
mov ecx, eax
shr ecx, 3
and eax, 7
xor ebx, ebx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0xc]
sub esi, ecx
lea eax, [edx + esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
mov edi, dword [edx + esi]
mov esi, dword [esp + 0x44]
cmp esi, dword [esp + 0x5c]
jae 0x579420
test ebx, ebx
jne 0x579420
mov edx, edi
mov ebx, dword [esp + 0x20]
mov ecx, ebx
shl edx, cl
mov ecx, dword [esp]
shr edx, cl
mov eax, dword [esp + 0x18]
mov cl, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
add eax, ebx
mov byte [esi], cl
add esi, 1
mov dword [esp + 0x44], esi
cmp eax, 0x20
jbe 0x579119
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
cmp esi, ecx
jae 0x579288
sub ecx, esi
mov eax, dword [esp + 0x38]
lea edi, [eax + eax*2]
add edi, dword [esp + 0x58]
mov eax, esi
lea edx, [esi + 1]
test cl, 1
je 0x579228
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x20]
mov ecx, edx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
mov ecx, dword [esp + 0x18]
mov bl, byte [ecx + esi*2 + 1]
mov byte [esp + 0x38], bl
movzx esi, byte [ecx + esi*2]
mov cl, byte [esp + 0x38]
mov byte [eax], cl
add edx, esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 8]
mov eax, edx
cmp edi, edx
je 0x579288
mov ebp, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp]
mov esi, dword [esp + 0x4c]
mov edi, esi
mov ecx, eax
shl edi, cl
mov ecx, ebx
shr edi, cl
movzx edx, byte [edx + edi*2]
add edx, eax
mov ecx, edx
shl esi, cl
mov ecx, ebx
shr esi, cl
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + edi*2 + 1]
mov byte [ebp], al
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + esi*2]
add eax, edx
mov ecx, dword [esp + 0x18]
movzx ecx, byte [ecx + esi*2 + 1]
mov edx, dword [esp + 0x18]
mov byte [ebp + 1], cl
add ebp, 2
cmp ebp, dword [esp + 0x5c]
jne 0x579239
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + ebx]
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x40]
cmp ecx, 4
jl 0x5792bc
cmp dword [esp + 0x10], 0x20
mov ecx, dword [esp + 4]
jbe 0x5792dc
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
jmp 0x579508
cmp dword [esp + 0x10], 0x20
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 4]
jbe 0x5793bb
mov dword [esp + 0x38], edx
mov edi, dword [esp + 0xc]
jmp 0x579508
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
cmp ebx, 4
jge 0x579320
test ebx, ebx
mov ebp, dword [esp + 0x24]
je 0x579435
lea esi, [ebx + ebp]
mov edi, dword [esp + 0x10]
mov ecx, edi
shr ecx, 3
sub esi, ecx
xor edx, edx
cmp esi, ebp
setb dl
cmovb ecx, ebx
lea esi, [ecx*8]
sub edi, esi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xc]
jmp 0x579336
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 3
and edx, 7
mov dword [esp + 0x10], edx
xor edx, edx
mov ebp, dword [esp + 0x24]
sub ebx, ecx
mov esi, dword [ebp + ebx]
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x7c]
jae 0x579402
test edx, edx
jne 0x579402
mov edi, esi
mov ecx, dword [esp + 0x10]
mov ebp, ecx
shl edi, cl
mov ecx, dword [esp]
shr edi, cl
movzx edx, byte [eax + edi*2]
add edx, ebp
mov dword [esp + 0x30], esi
mov ecx, edx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
movzx ecx, byte [eax + edi*2 + 1]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 0x40]
mov byte [ebp], cl
movzx ecx, byte [eax + esi*2 + 1]
movzx esi, byte [eax + esi*2]
add esi, edx
mov byte [ebp + 1], cl
add ebp, 2
mov dword [esp + 0x40], ebp
mov dword [esp + 0x10], esi
cmp esi, 0x20
mov ecx, dword [esp + 4]
jbe 0x5792e4
add ebx, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x30]
jmp 0x579508
cmp ebx, 4
mov edi, dword [esp + 0xc]
jge 0x5793e9
test ebx, ebx
je 0x57943d
mov esi, dword [esp + 0x10]
mov ecx, esi
shr ecx, 3
sub edx, ecx
cmp edx, dword [esp + 0x24]
cmovb ecx, ebx
lea edx, [ecx*8]
sub esi, edx
mov dword [esp + 0x10], esi
jmp 0x5793f9
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 3
and edx, 7
mov dword [esp + 0x10], edx
sub ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + ebx]
cmp dword [esp + 0x10], 0x20
mov ecx, dword [esp + 4]
jbe 0x57941a
add ebx, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
jmp 0x579508
mov dword [esp + 0x30], esi
jmp 0x57943f
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x5c]
cmp esi, ecx
jb 0x5791da
jmp 0x579288
xor ebx, ebx
mov edi, dword [esp + 0x40]
jmp 0x579447
xor ebx, ebx
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
cmp ebx, 4
jge 0x57947d
lea edx, [ebx + ebp]
test ebx, ebx
je 0x5794f0
mov ecx, esi
shr ecx, 3
sub edx, ecx
xor eax, eax
cmp edx, ebp
setb al
cmovb ecx, ebx
lea edx, [ecx*8]
sub esi, edx
mov edx, esi
jmp 0x579489
mov ecx, esi
shr ecx, 3
and esi, 7
mov edx, esi
xor eax, eax
sub ebx, ecx
mov esi, dword [ebp + ebx]
cmp edi, dword [esp + 0x6c]
jae 0x5794d3
test eax, eax
jne 0x5794d3
mov eax, ebx
mov dword [esp + 0x30], esi
mov ecx, edx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
mov ebx, dword [esp + 0x18]
movzx ecx, byte [ebx + esi*2 + 1]
movzx esi, byte [ebx + esi*2]
mov ebx, eax
add esi, edx
mov byte [edi], cl
add edi, 1
cmp esi, 0x20
jbe 0x57944f
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], esi
add ebx, ebp
mov dword [esp + 0x38], ebx
jmp 0x5794fc
add ebx, ebp
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x6c]
mov eax, edi
cmp edi, ebp
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
jb 0x57951c
jmp 0x5795e0
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x40]
cmp eax, ebp
jae 0x5795e0
mov edi, eax
mov ebx, edx
mov dword [esp + 0x30], esi
mov ecx, ebx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
mov eax, dword [esp + 0x18]
movzx edx, byte [eax + esi*2]
add edx, ebx
mov cl, byte [eax + esi*2 + 1]
mov byte [edi], cl
mov ecx, ebp
sub ecx, edi
cmp ecx, 1
je 0x5795d8
mov ecx, edi
not ecx
add ecx, ebp
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x74]
lea ebx, [eax + esi]
add ebx, 0xfffffffe
test cl, 1
jne 0x579568
lea ebp, [edi + 1]
jmp 0x579589
mov esi, dword [esp + 0x30]
mov ecx, edx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
mov eax, dword [esp + 0x18]
mov cl, byte [eax + esi*2 + 1]
movzx esi, byte [eax + esi*2]
add edx, esi
lea ebp, [edi + 2]
mov byte [edi + 1], cl
mov ecx, dword [esp + 4]
cmp ebx, edi
jne 0x579597
mov edi, dword [esp + 0xc]
jmp 0x5795e0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov esi, edi
mov ecx, edx
shl esi, cl
mov ecx, dword [esp]
shr esi, cl
movzx ebx, byte [eax + esi*2]
add ebx, edx
mov ecx, ebx
shl edi, cl
mov ecx, dword [esp]
shr edi, cl
movzx ecx, byte [eax + esi*2 + 1]
mov byte [ebp], cl
movzx edx, byte [eax + edi*2]
add edx, ebx
movzx ecx, byte [eax + edi*2 + 1]
mov byte [ebp + 1], cl
add ebp, 2
cmp ebp, dword [esp + 0x6c]
jne 0x57959b
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x60]
xor eax, 6
xor ecx, 0x20
or ecx, eax
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
xor esi, 0x20
or esi, eax
mov eax, dword [esp + 0x1c]
xor eax, edi
mov edi, dword [esp + 0x20]
xor edi, 0x20
or edi, eax
mov eax, dword [esp + 0x38]
xor eax, dword [esp + 0x24]
xor edx, 0x20
or edx, eax
or edx, edi
or edx, esi
or edx, ecx
mov eax, 0xffffffec
cmove eax, dword [esp + 0x74]
jmp 0x5789a7