Function at 0x57b690
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [ebx + 0xc]
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x24c], ebx
movzx eax, word [edi + 0xc]
cmp ax, cx
je 0x57b72c
cmp eax, 0x80
jg 0x57b6f5
je 0x57b6ee
cmp eax, 0x10
je 0x57b703
cmp eax, 0x20
je 0x57b6e7
cmp eax, 0x40
jne 0x57b703
mov eax, 0x15
jmp 0x57b716
mov eax, 0x14
jmp 0x57b716
mov eax, 0x16
jmp 0x57b716
cmp eax, 0x100
je 0x57b711
cmp eax, 0x200
je 0x57b70a
mov eax, 0x13
jmp 0x57b716
mov eax, 0x18
jmp 0x57b716
mov eax, 0x17
test ecx, 0x7f0
jne 0x57b72c
push 0
push eax
push 0
push ebx
call fcn.005886f0
add esp, 0x10
test esi, esi
jne 0x57b74f
mov eax, dword [edi]
mov dword [ebp - 0x21c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x218], eax
jmp 0x57b75b
movdqu xmm0, xmmword [esi]
movdqu xmmword [ebp - 0x224], xmm0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.0045b5f0
add esp, 0xc
test ax, ax
je 0x57b78d
pop edi
pop esi
mov eax, 0x10
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
movdqu xmm0, xmmword [ebp - 0x214]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x230], eax
mov eax, dword [ebx]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
movdqu xmmword [ebp - 0x224], xmm0
call fcn.0045b5f0
add esp, 0xc
test ax, ax
jne 0x57c63d
mov eax, dword [ebp - 0x230]
test eax, eax
jns 0x57b800
sub dword [ebp - 0x220], eax
add dword [ebp - 0x218], eax
mov dword [ebp - 0x230], 0
cmp word [edi + 0xe], 1
jne 0x57b9cc
cmp dword [edi + 0x24], 0
je 0x57b9cc
or eax, 0xffffffff
lea edi, [ebp - 0x104]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 4]
test edi, edi
jle 0x57b859
mov eax, dword [ebx]
mov esi, dword [ebx + 0x28]
mov ecx, esi
test eax, eax
jle 0x57b853
mov edx, eax
lea esp, [esp]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebp + eax - 0x104], 1
dec edx
jne 0x57b840
mov eax, dword [ebx]
add esi, dword [ebx + 8]
dec edi
jne 0x57b831
mov esi, 0xff
mov edi, edi
cmp byte [ebp + esi - 0x104], 1
je 0x57b86d
dec esi
jns 0x57b860
or eax, 0xffffffff
lea edi, [ebp - 0x104]
mov ecx, 0x40
inc esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x244], esi
mov eax, dword [edi + 4]
mov dword [ebp - 0x248], eax
test eax, eax
jle 0x57b8d3
mov esi, dword [edi]
mov edx, dword [edi + 0x28]
lea esp, [esp]
xor ecx, ecx
test esi, esi
jle 0x57b8c7
jmp 0x57b8b0
movzx eax, byte [edx + ecx]
inc ecx
mov byte [ebp + eax - 0x104], 1
cmp ecx, esi
jl 0x57b8b0
mov eax, dword [ebp - 0x248]
add edx, dword [edi + 8]
dec eax
mov dword [ebp - 0x248], eax
jne 0x57b8a0
xor eax, eax
jmp 0x57b8e0
mov byte [ebp + eax - 0x204], al
inc eax
cmp eax, 0x100
jl 0x57b8e0
movzx eax, word [edi + 0x22]
test ax, ax
cwde
jns 0x57b8ff
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x244]
xor edx, edx
mov dword [ebp - 0x250], eax
lea ecx, [ecx]
cmp ecx, 0x100
jge 0x57b9d8
cmp byte [ebp + edx - 0x104], 1
jne 0x57b9bd
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x57b97e
mov eax, dword [edi + 0x24]
mov al, byte [edx + eax]
mov byte [esi + ecx], al
mov eax, dword [edi + 0x24]
mov ecx, dword [ebx + 0x24]
mov esi, dword [ebp - 0x244]
mov al, byte [eax + edx + 0x100]
mov byte [esi + ecx + 0x100], al
mov eax, dword [edi + 0x24]
mov ecx, dword [ebx + 0x24]
mov al, byte [eax + edx + 0x200]
mov byte [esi + ecx + 0x200], al
mov eax, dword [edi + 0x24]
mov ecx, dword [ebx + 0x24]
mov al, byte [eax + edx + 0x300]
mov byte [esi + ecx + 0x300], al
mov ecx, esi
mov byte [ebp + edx - 0x204], cl
inc ecx
cmp word [edi + 0x22], 0
mov dword [ebp - 0x244], ecx
jge 0x57b9bd
mov eax, dword [edi + 0x24]
cmp byte [eax + edx], 0xff
jne 0x57b9bd
cmp byte [eax + edx + 0x100], 0xff
jne 0x57b9bd
mov esi, dword [ebp - 0x250]
cmp byte [eax + edx + 0x200], 0xff
cmove esi, edx
mov dword [ebp - 0x250], esi
inc edx
cmp edx, 0x100
jl 0x57b910
jmp 0x57b9d8
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x218]
add eax, edx
mov dword [ebp - 0x258], edx
cmp edx, eax
jge 0x57c63d
jmp 0x57ba00
sub edx, dword [ebp - 0x220]
add edx, dword [ebp - 0x230]
test byte [ebx + 0x16], 0x10
mov esi, edx
mov eax, dword [ebp - 0x258]
mov ecx, eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x23c], eax
je 0x57ba38
mov eax, dword [ebx + 4]
sub eax, esi
dec eax
mov esi, eax
mov dword [ebp - 0x248], eax
mov eax, ecx
cmp edx, dword [ebx + 4]
jge 0x57c63d
test edx, edx
js 0x57c63d
test byte [edi + 0x16], 0x10
je 0x57ba5b
mov ecx, dword [edi + 4]
sub ecx, eax
dec ecx
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x234]
test edx, edx
jns 0x57ba79
sub dword [ebp - 0x224], edx
add dword [ebp - 0x21c], edx
xor edx, edx
mov dword [ebp - 0x234], edx
mov eax, dword [ebx]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x21c]
add eax, edx
cmp eax, dword [ebp - 0x244]
jl 0x57ba99
sub dword [ebp - 0x244], edx
jmp 0x57baa5
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x244], eax
movzx eax, word [edi + 0xc]
cmp ax, word [ebx + 0xc]
jne 0x57bbdf
cmp dword [ebp + 0x1c], 0xff
jne 0x57bbdf
cmp word [edi + 0x12], 4
je 0x57bbdf
cmp eax, 1
jne 0x57bb37
xor esi, esi
cmp dword [ebp - 0x244], esi
jle 0x57c61c
mov edi, edi
mov eax, dword [ebp - 0x224]
add eax, esi
push eax
mov eax, dword [edi + 8]
imul eax, ecx
add eax, dword [edi + 0x28]
push eax
call fcn.00455380
mov byte [ebp - 0x25c], al
mov eax, dword [ebp - 0x234]
push dword [ebp - 0x25c]
add eax, esi
push eax
mov eax, dword [ebx + 8]
imul eax, dword [ebp - 0x248]
add eax, dword [ebx + 0x28]
push eax
call fcn.00459f90
mov ecx, dword [ebp - 0x23c]
inc esi
add esp, 0x14
cmp esi, dword [ebp - 0x244]
jl 0x57bae0
jmp 0x57c61c
movzx eax, word [edi + 0xe]
cmp eax, 1
jne 0x57bb9e
cmp dword [edi + 0x24], 0
je 0x57bb9e
movzx ecx, word [ebx + 0xe]
mov eax, dword [ebx + 8]
imul ecx, edx
mov edx, dword [edi + 8]
imul edx, dword [ebp - 0x23c]
imul eax, esi
mov esi, dword [ebp - 0x244]
add edx, dword [edi + 0x28]
add edx, dword [ebp - 0x224]
add ecx, eax
add ecx, dword [ebx + 0x28]
test esi, esi
jle 0x57c61c
lea esp, [esp]
movzx eax, byte [edx]
cmp eax, dword [ebp - 0x250]
je 0x57bb94
mov al, byte [ebp + eax - 0x204]
mov byte [ecx], al
inc ecx
inc edx
dec esi
jne 0x57bb80
jmp 0x57c61c
mov ecx, eax
imul eax, dword [ebp - 0x244]
imul ecx, dword [ebp - 0x224]
push eax
mov eax, dword [edi + 8]
imul eax, dword [ebp - 0x23c]
add eax, ecx
movzx ecx, word [ebx + 0xe]
add eax, dword [edi + 0x28]
push eax
mov eax, dword [ebx + 8]
imul ecx, edx
imul eax, esi
add ecx, eax
add ecx, dword [ebx + 0x28]
push ecx
call fcn.00592150
add esp, 0xc
jmp 0x57c61c
mov ebx, dword [edi + 8]
imul ebx, ecx
add ebx, dword [edi + 0x28]
mov dword [ebp - 0x240], ebx
cmp eax, 1
je 0x57bc06
movzx eax, word [edi + 0xe]
imul eax, dword [ebp - 0x224]
add ebx, eax
mov dword [ebp - 0x240], ebx
mov ecx, dword [ebp - 0x24c]
mov esi, dword [ecx + 8]
imul esi, dword [ebp - 0x248]
movzx eax, word [ecx + 0xe]
imul eax, edx
xor edx, edx
mov dword [ebp - 0x248], edx
add esi, eax
add esi, dword [ecx + 0x28]
cmp dword [ebp - 0x244], edx
jle 0x57c61a
or al, 0xff
xor cl, cl
mov dword [ebp - 0x23c], eax
movzx eax, word [edi + 0xc]
mov byte [ebp - 0x238], cl
cmp eax, 0x40
jg 0x57bd74
je 0x57bdd6
dec eax
cmp eax, 0x1f
ja case.0x57bc6a.3
movzx eax, byte [eax + 0x57c664]
jmp dword [eax*4 + 0x57c650]
mov eax, dword [ebp - 0x224]
add eax, edx
push eax
push ebx
call fcn.00455380
movzx ebx, word [edi + 0x22]
add esp, 8
mov cl, al
neg al
sbb al, al
cmp bx, 0xffff
mov ebx, dword [ebp - 0x240]
mov dl, al
mov dh, al
mov byte [ebp - 0x235], al
mov byte [ebp - 0x237], dl
mov byte [ebp - 0x236], dh
je 0x57bdf9
movzx eax, cl
movzx ecx, word [edi + 0x22]
cmp ax, cx
mov al, dh
sete ah
mov byte [ebp - 0x238], ah
jmp 0x57bdff
movzx eax, word [edi + 0x20]
mov ecx, 0x100
cmp ax, cx
jne 0x57bce7
mov al, byte [ebx]
inc ebx
mov dl, al
mov dh, al
jmp 0x57bde1
movsx ecx, ax
movzx eax, byte [ebx]
dec ecx
imul eax, eax, 0xff
cdq
idiv ecx
inc ebx
mov dl, al
mov byte [ebp - 0x237], al
mov dh, al
jmp 0x57bde7
movzx ecx, word [edi + 0x22]
cmp cx, 0xffff
je 0x57bd20
movzx eax, byte [ebx]
cmp ax, cx
sete cl
mov byte [ebp - 0x238], cl
movzx ecx, byte [ebx]
inc ebx
mov eax, dword [edi + 0x24]
mov dh, byte [eax + ecx]
mov dl, byte [eax + ecx + 0x100]
mov al, byte [eax + ecx + 0x200]
jmp 0x57bde1
mov dh, byte [ebx]
mov dl, byte [ebx + 1]
mov al, byte [ebx + 2]
mov cl, byte [ebx + 3]
add ebx, 4
mov ah, byte [ebp - 0x238]
mov byte [ebp - 0x236], dh
mov byte [ebp - 0x237], dl
mov byte [ebp - 0x235], al
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], ebx
jmp 0x57be05
cmp eax, 0x80
je 0x57bdcd
cmp eax, 0x100
je 0x57bd99
cmp eax, 0x200
jne case.0x57bc6a.3
mov al, byte [ebx]
inc ebx
mov dword [ebp - 0x23c], eax
mov dh, byte [ebx]
mov al, byte [ebx + 2]
jmp 0x57bddb
mov al, byte [ebx]
mov dl, byte [ebx + 1]
mov dh, byte [ebx + 2]
mov cl, byte [ebx + 3]
add ebx, 4
mov ah, byte [ebp - 0x238]
mov byte [ebp - 0x235], al
mov byte [ebp - 0x237], dl
mov byte [ebp - 0x236], dh
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], ebx
jmp 0x57be05
mov al, byte [ebx]
inc ebx
mov dword [ebp - 0x23c], eax
mov al, byte [ebx]
mov dh, byte [ebx + 2]
mov dl, byte [ebx + 1]
add ebx, 3
mov byte [ebp - 0x237], dl
mov byte [ebp - 0x235], al
mov byte [ebp - 0x236], dh
mov dword [ebp - 0x240], ebx
mov ah, byte [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
cmp dword [ebp + 0x1c], 0xff
movzx edi, word [edi + 0x12]
je 0x57be37
cmp edi, 4
jne 0x57be32
cmp dword [ebp + 0x20], 0
je 0x57be32
movzx ecx, cl
mov eax, 0x80808081
imul ecx, dword [ebp + 0x1c]
mul ecx
mov eax, edx
shr eax, 7
jmp 0x57be50
mov al, byte [ebp + 0x1c]
jmp 0x57be50
cmp edi, 4
jne 0x57c546
cmp dword [ebp + 0x20], 0
je 0x57c561
mov eax, dword [ebp - 0x23c]
mov cl, byte [ebp - 0x238]
test cl, cl
je 0x57be6b
mov eax, dword [ebp - 0x24c]
movzx eax, word [eax + 0xe]
add esi, eax
jmp 0x57c5f3
mov ecx, dword [ebp - 0x24c]
movzx ecx, word [ecx + 0xc]
cmp ecx, 0x80
jg 0x57c209
je 0x57c089
cmp ecx, 0x20
je 0x57bf2a
cmp ecx, 0x40
jne 0x57c21d
movzx ecx, byte [esi]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [ebp - 0x235]
sub edi, ebx
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
movzx ecx, byte [esi + 1]
movzx eax, byte [ebp - 0x237]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx eax, byte [ebp - 0x236]
movzx ecx, byte [esi + 2]
imul eax, ebx
mov ebx, dword [ebp - 0x240]
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
add esi, 3
jmp 0x57c5f3
cmp di, 4
jne 0x57bffb
cmp dword [ebp + 0x20], 0
je 0x57bffb
movzx ecx, byte [esi]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [esi + 3]
sub edi, ebx
imul edi, eax
mov eax, 0x80808081
imul ecx, edi
mul ecx
movzx eax, byte [ebp - 0x236]
movzx ecx, byte [esi + 1]
imul eax, ebx
shr edx, 7
imul ecx, edi
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
mov byte [esi], dl
mul ecx
movzx eax, byte [ebp - 0x237]
movzx ecx, byte [esi + 2]
imul eax, ebx
shr edx, 7
imul ecx, edi
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 1], dl
mul ecx
imul ecx, edi, 0xff
movzx eax, byte [ebp - 0x235]
imul eax, ebx
shr edx, 7
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 2], dl
mul ecx
shr edx, 7
imul eax, ebx, 0xff
mov ebx, dword [ebp - 0x240]
add edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [esi + 3], dl
jmp 0x57c5f0
movzx ecx, byte [esi]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [ebp - 0x236]
sub edi, ebx
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
movzx ecx, byte [esi + 1]
movzx eax, byte [ebp - 0x237]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx ecx, byte [esi + 2]
movzx eax, byte [ebp - 0x235]
imul eax, ebx
mov ebx, dword [ebp - 0x240]
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
jmp 0x57c5f0
cmp di, 4
jne 0x57c179
cmp dword [ebp + 0x20], 0
je 0x57c179
movzx edi, byte [esi]
mov ebx, 0xff
movzx ecx, byte [esi + 3]
movzx eax, al
sub ebx, eax
mov dword [ebp - 0x23c], eax
imul ecx, edi
mov eax, 0x80808081
imul ecx, ebx
mul ecx
movzx eax, byte [ebp - 0x236]
imul eax, dword [ebp - 0x23c]
movzx ecx, byte [esi + 2]
shr edx, 7
imul ecx, edi
add edx, eax
mov eax, 0x80808081
mul edx
imul ecx, ebx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 3], dl
mul ecx
movzx eax, byte [ebp - 0x237]
imul eax, dword [ebp - 0x23c]
movzx ecx, byte [esi + 1]
shr edx, 7
imul ecx, edi
imul edi, ebx
add edx, eax
mov eax, 0x80808081
mul edx
imul ecx, ebx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 2], dl
mul ecx
imul ecx, edi, 0xff
movzx eax, byte [ebp - 0x235]
imul eax, dword [ebp - 0x23c]
shr edx, 7
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 1], dl
mul ecx
shr edx, 7
imul eax, dword [ebp - 0x23c], 0xff
mov ebx, dword [ebp - 0x240]
add edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [esi], dl
jmp 0x57c5f0
movzx ecx, byte [esi + 1]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [ebp - 0x235]
sub edi, ebx
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx ecx, byte [esi + 2]
movzx eax, byte [ebp - 0x237]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
movzx ecx, byte [esi + 3]
movzx eax, byte [ebp - 0x236]
imul eax, ebx
mov ebx, dword [ebp - 0x240]
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 3], al
jmp 0x57c5f0
cmp ecx, 0x100
je 0x57c3ef
cmp ecx, 0x200
je 0x57c283
movzx ecx, byte [esi]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [ebp - 0x236]
sub edi, ebx
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
movzx ecx, byte [esi + 1]
movzx eax, byte [ebp - 0x237]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx eax, byte [ebp - 0x235]
jmp 0x57befa
cmp di, 4
jne 0x57c35f
cmp dword [ebp + 0x20], 0
je 0x57c35f
movzx edi, byte [esi]
mov ebx, 0xff
movzx ecx, byte [esi + 1]
movzx eax, al
sub ebx, eax
mov dword [ebp - 0x23c], eax
imul ecx, edi
mov eax, 0x80808081
imul ecx, ebx
mul ecx
movzx eax, byte [ebp - 0x236]
imul eax, dword [ebp - 0x23c]
movzx ecx, byte [esi + 2]
shr edx, 7
imul ecx, edi
add edx, eax
mov eax, 0x80808081
mul edx
imul ecx, ebx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 1], dl
mul ecx
movzx eax, byte [ebp - 0x237]
imul eax, dword [ebp - 0x23c]
movzx ecx, byte [esi + 3]
shr edx, 7
imul ecx, edi
imul edi, ebx
add edx, eax
mov eax, 0x80808081
mul edx
imul ecx, ebx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 2], dl
mul ecx
imul ecx, edi, 0xff
movzx eax, byte [ebp - 0x235]
imul eax, dword [ebp - 0x23c]
shr edx, 7
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
mov byte [esi + 3], dl
mul ecx
shr edx, 7
imul eax, dword [ebp - 0x23c], 0xff
jmp 0x57c160
movzx ecx, byte [esi + 1]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [ebp - 0x236]
sub edi, ebx
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx ecx, byte [esi + 2]
movzx eax, byte [ebp - 0x237]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
movzx ecx, byte [esi + 3]
movzx eax, byte [ebp - 0x235]
imul eax, ebx
mov ebx, dword [ebp - 0x240]
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 3], al
jmp 0x57c5f0
cmp di, 4
jne 0x57c4b8
cmp dword [ebp + 0x20], 0
je 0x57c4b8
movzx ebx, al
mov edi, 0xff
movzx eax, byte [esi + 3]
sub edi, ebx
mov ecx, edi
mov dword [ebp - 0x23c], ebx
imul ecx, eax
imul ecx, eax
mov eax, 0x80808081
mul ecx
movzx eax, byte [ebp - 0x236]
imul eax, ebx
shr edx, 7
movzx ecx, byte [esi + 2]
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
movzx ebx, dl
imul ebx, edi
mov edi, dword [ebp - 0x23c]
imul ecx, ebx
mul ecx
movzx eax, byte [ebp - 0x237]
imul eax, edi
shr edx, 7
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
movzx ecx, dl
imul ecx, ebx
mov byte [esi + 1], dl
mul ecx
imul ecx, ebx, 0xff
movzx eax, byte [ebp - 0x235]
imul eax, edi
shr edx, 7
add edx, eax
mov eax, 0x80808081
mul edx
mov eax, 0x80808081
shr edx, 7
mov byte [esi], dl
mul ecx
shr edx, 7
imul eax, edi, 0xff
jmp 0x57bfe1
movzx ecx, byte [esi]
mov edi, 0xff
movzx ebx, al
movzx eax, byte [ebp - 0x235]
sub edi, ebx
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi], al
movzx ecx, byte [esi + 1]
movzx eax, byte [ebp - 0x237]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx ecx, byte [esi + 2]
movzx eax, byte [ebp - 0x236]
imul eax, ebx
mov ebx, dword [ebp - 0x240]
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
jmp 0x57c5f0
cmp dword [ebp + 0x20], 0
je 0x57c561
test ah, ah
je 0x57c561
mov eax, dword [ebp - 0x24c]
movzx eax, word [eax + 0xe]
add esi, eax
jmp 0x57c5f3
mov edi, dword [ebp - 0x24c]
movzx edi, word [edi + 0xc]
cmp edi, 0x80
jg 0x57c5ac
je 0x57c596
cmp edi, 0x20
je 0x57c58c
cmp edi, 0x40
jne 0x57c5bc
mov byte [esi], al
mov byte [esi + 1], dl
mov byte [esi + 2], dh
add esi, 3
jmp 0x57c5f3
mov byte [esi], dh
mov byte [esi + 1], dl
mov byte [esi + 2], al
jmp 0x57c5e7
cmp dword [ebp + 0x20], 0
jne 0x57c59e
mov byte [esi], cl
inc esi
mov byte [esi], al
mov byte [esi + 1], dl
mov byte [esi + 2], dh
add esi, 3
jmp 0x57c5f3
cmp edi, 0x100
je 0x57c5df
cmp edi, 0x200
je 0x57c5c9
mov byte [esi], dh
mov byte [esi + 1], dl
mov byte [esi + 2], al
add esi, 3
jmp 0x57c5f3
cmp dword [ebp + 0x20], 0
jne 0x57c5d1
mov byte [esi], cl
inc esi
mov byte [esi], dh
mov byte [esi + 1], dl
mov byte [esi + 2], al
add esi, 3
jmp 0x57c5f3
mov byte [esi], al
mov byte [esi + 1], dl
mov byte [esi + 2], dh
cmp dword [ebp + 0x20], 0
jne 0x57c5f0
mov byte [esi + 3], cl
add esi, 4
mov edx, dword [ebp - 0x248]
mov edi, dword [ebp - 0x254]
inc edx
mov dword [ebp - 0x248], edx
cmp edx, dword [ebp - 0x244]
jl 0x57bc36
mov ebx, dword [ebp - 0x24c]
jmp 0x57c61c
mov ebx, ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x218]
inc edx
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x258], edx
cmp edx, eax
jl 0x57ba00
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret