Function at 0x100531d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov dword [ebp - 0x64], edx
lea edx, [ebp - 0x88]
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x6c], 0xff
call fcn.10052ce0
test eax, eax
je 0x1005322a
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 4], eax
cmp eax, 0x1000000
jbe 0x10053231
mov ecx, dword [0x10194d48]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x1014fed4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov dword [ebp - 0x18], ecx
cmp ecx, 0x1000000
jbe 0x1005325e
mov ecx, dword [0x10194d48]
mov eax, dword fs:[0x2c]
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x1014fee0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x6c]
push ebx
mov ebx, dword [ebp - 0x84]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], edx
push edi
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x34], edi
cmp eax, 0xc
jne 0x100532c0
cmp edx, 0x18
jge 0x100532d6
mov ecx, ebx
mov eax, 0x55555556
sub ecx, edi
sub ecx, 0x18
imul ecx
mov ecx, dword [ebp - 0x18]
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x100532cf
cmp edx, 0x10
jge 0x100532d6
mov edi, ebx
sub edi, dword [ebp - 0x34]
sub edi, eax
sar edi, 2
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x1005333e
mov eax, dword [esi + 0xa8]
sub eax, dword [esi + 0xb4]
add eax, dword [esi + 0xac]
cmp ebx, eax
je 0x10053303
push 0x1515
push 0x1014fef0
push str.info.offset__s__callback_already_read___int___s__img_buffer___s__img_buffer_original_
call fcn.100e7dd8
add esp, 0xc
mov ecx, dword [esi + 0xac]
mov eax, dword [esi + 0xa8]
sub ecx, esi
add eax, 0xffffffd8
add eax, ecx
cmp ebx, eax
je 0x1005333c
mov ecx, dword [0x10194d48]
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.bad_offset
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
cmp dword [ebp - 0x28], 0x18
mov edx, dword [ebp - 0x1c]
jne 0x10053358
cmp edx, 0xff000000
jne 0x10053356
mov eax, 3
jmp 0x10053362
mov ecx, dword [esi]
xor eax, eax
test edx, edx
setne al
add eax, 3
mov dword [esi + 8], eax
mov edi, dword [esi + 4]
test ecx, ecx
js 0x10053fbf
je 0x10053392
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x10053fbf
lea eax, [ecx*4]
test eax, eax
js 0x10053fbf
test edi, edi
js 0x10053fbf
je 0x100533b3
mov eax, 0x7fffffff
cdq
idiv edi
lea edx, [ecx*4]
cmp edx, eax
jg 0x10053fbf
test ecx, ecx
je 0x100533c8
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x10053f9d
test edi, edi
je 0x100533e3
mov eax, 0x7fffffff
cdq
idiv edi
lea edx, [ecx*4]
cmp edx, eax
jg 0x10053f9d
imul ecx, edi
lea eax, [ecx*4]
push eax
call fcn.100e7eda
mov edx, eax
add esp, 4
mov dword [ebp - 0x20], edx
test edx, edx
je 0x10053f9d
mov ecx, dword [ebp - 0x28]
xor edi, edi
cmp ecx, 0x10
jge 0x1005397b
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10053950
cmp eax, 0x100
jg 0x10053950
mov ebx, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], ebx
test eax, eax
jle 0x10053586
lea ecx, [esi + 0x20]
mov ebx, eax
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x10053461
mov bl, byte [eax]
inc eax
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0xac], eax
jmp 0x10053495
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x20]
mov dword [ebp - 8], ecx
je 0x1005348e
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov edx, dword [ebp - 0x14]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 8]
mov dword [esi + 0xac], eax
jmp 0x10053495
mov byte [ebp - 1], 0
mov dword [ebp - 8], ecx
lea edi, [ebp - 0x488]
lea edx, [edi + edx*4]
mov dword [ebp - 0x10], edx
mov edi, edx
mov dl, byte [ebp - 1]
mov byte [edi + 2], dl
cmp eax, dword [esi + 0xb0]
jae 0x100534bc
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x100534db
cmp dword [ecx], 0
je 0x100534d9
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x100534db
xor cl, cl
mov edx, dword [ebp - 0x10]
mov byte [edx + 1], cl
cmp eax, dword [esi + 0xb0]
jae 0x100534fa
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
lea ecx, [esi + 0x20]
mov dword [esi + 0xac], eax
jmp 0x10053524
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
je 0x10053520
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 8]
mov dword [esi + 0xac], eax
jmp 0x10053524
mov byte [ebp - 1], 0
cmp dword [ebp - 0x24], 0xc
mov edx, ecx
mov edi, dword [ebp - 0x10]
mov cl, byte [ebp - 1]
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 8], ecx
je 0x1005356a
cmp eax, dword [esi + 0xb0]
jae 0x1005354d
inc eax
lea ecx, [esi + 0x20]
mov dword [esi + 0xac], eax
jmp 0x10053567
cmp dword [edx], 0
mov ecx, edx
mov dword [ebp - 8], ecx
je 0x1005356a
mov ecx, esi
call fcn.10049d80
inc dword [esi + 0xac]
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx*4 - 0x485], 0xff
inc edx
mov dword [ebp - 0x14], edx
cmp edx, ebx
jl 0x10053442
mov ebx, dword [ebp - 0x2c]
xor edi, edi
mov ecx, dword [ebp - 0x44]
xor eax, eax
cmp dword [ebp - 0x24], 0xc
setne al
add eax, 3
imul eax, dword [ebp - 0xc]
sub ecx, eax
sub ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x24]
je 0x100535e9
test ecx, ecx
jns 0x100535b5
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xac], eax
jmp 0x100535e9
cmp dword [esi + 0x10], 0
je 0x100535e3
mov edx, dword [esi + 0xb0]
mov eax, edx
sub eax, dword [esi + 0xac]
cmp eax, ecx
jge 0x100535e3
sub ecx, eax
mov dword [esi + 0xac], edx
mov eax, dword [esi + 0x14]
push ecx
push dword [esi + 0x1c]
call eax
add esp, 8
jmp 0x100535e9
add dword [esi + 0xac], ecx
mov edx, dword [ebp - 0x28]
cmp edx, 1
jne 0x100535fb
mov eax, dword [esi]
add eax, 7
shr eax, 3
jmp 0x10053612
cmp edx, 4
jne 0x10053607
mov eax, dword [esi]
inc eax
shr eax, 1
jmp 0x10053612
cmp edx, 8
jne 0x10053925
mov eax, dword [esi]
mov ecx, dword [esi + 4]
neg eax
and eax, 3
cmp edx, 1
mov dword [ebp - 0x14], eax
mov edx, ecx
jne 0x1005379b
mov dword [ebp - 0x38], 0
test ecx, ecx
jle 0x10053e9d
nop word [eax + eax]
mov ecx, dword [esi + 0xac]
mov eax, 7
mov dword [ebp - 0xc], eax
cmp ecx, dword [esi + 0xb0]
jae 0x10053666
mov dl, byte [ecx]
lea eax, [ecx + 1]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0xc]
jmp 0x10053689
cmp dword [esi + 0x20], 0
je 0x10053687
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0xc]
jmp 0x10053689
xor dl, dl
cmp dword [esi], 0
movzx ecx, dl
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], 0
jle 0x10053747
nop
mov edx, ecx
mov ecx, eax
sar edx, cl
and edx, 1
movzx eax, byte [ebp + edx*4 - 0x488]
mov byte [ebx + edi], al
movzx eax, byte [ebp + edx*4 - 0x487]
mov byte [ebx + edi + 1], al
movzx eax, byte [ebp + edx*4 - 0x486]
mov byte [ebx + edi + 2], al
mov eax, dword [ebp - 0x10]
inc eax
mov byte [ebx + edi + 3], 0xff
mov ecx, dword [esi]
add edi, 4
mov edx, eax
mov dword [ebp - 0x10], edx
cmp eax, ecx
je 0x10053747
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
jns 0x1005373c
mov eax, dword [esi + 0xac]
mov dword [ebp - 0xc], 7
cmp eax, dword [esi + 0xb0]
jae 0x1005370e
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053730
cmp dword [esi + 0x20], 0
je 0x1005372e
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
mov ecx, dword [esi]
jmp 0x10053730
xor dl, dl
movzx eax, dl
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
cmp edx, ecx
mov ecx, dword [ebp - 0x3c]
jl 0x100536a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10053782
cmp dword [esi + 0x10], 0
je 0x1005377c
mov edx, dword [esi + 0xb0]
mov ecx, edx
sub ecx, dword [esi + 0xac]
cmp ecx, eax
jge 0x1005377c
sub eax, ecx
mov dword [esi + 0xac], edx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
jmp 0x10053782
add dword [esi + 0xac], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0x38], eax
mov edx, ecx
cmp eax, ecx
jl 0x10053640
jmp 0x10053e9d
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x10053e9d
nop word [eax + eax]
cmp dword [esi], 0
mov dword [ebp - 0x10], 0
jle 0x100538d4
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x100537d9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x100537f9
cmp dword [esi + 0x20], 0
je 0x100537f7
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x100537f9
xor cl, cl
mov edx, 0x20
movzx ecx, cl
mov eax, esi
add eax, edx
xor edx, edx
cmp dword [ebp - 0x28], 4
mov dword [ebp - 0x18], eax
jne 0x10053818
mov edx, ecx
and edx, 0xf
shr ecx, 4
movzx eax, byte [ebp + ecx*4 - 0x488]
mov byte [ebx + edi], al
movzx eax, byte [ebp + ecx*4 - 0x487]
mov byte [ebx + edi + 1], al
movzx eax, byte [ebp + ecx*4 - 0x486]
mov ecx, dword [ebp - 0x10]
mov byte [ebx + edi + 2], al
mov byte [ebx + edi + 3], 0xff
add edi, 4
lea eax, [ecx + 1]
cmp eax, dword [esi]
je 0x100538d1
cmp dword [ebp - 0x28], 8
jne 0x10053898
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x10053870
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053892
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10053890
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053892
xor cl, cl
movzx edx, cl
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp + edx*4 - 0x488]
add ecx, 2
mov byte [ebx + edi], al
movzx eax, byte [ebp + edx*4 - 0x487]
mov byte [ebx + edi + 1], al
movzx eax, byte [ebp + edx*4 - 0x486]
mov byte [ebx + edi + 2], al
mov byte [ebx + edi + 3], 0xff
add edi, 4
mov dword [ebp - 0x10], ecx
cmp ecx, dword [esi]
jl 0x100537c0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1005390f
cmp dword [esi + 0x10], 0
je 0x10053909
mov edx, dword [esi + 0xb0]
mov ecx, edx
sub ecx, dword [esi + 0xac]
cmp ecx, eax
jge 0x10053909
sub eax, ecx
mov dword [esi + 0xac], edx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
mov eax, dword [ebp - 0x14]
add esp, 8
jmp 0x1005390f
add dword [esi + 0xac], eax
inc dword [ebp - 0x1c]
mov ecx, dword [esi + 4]
mov edx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x100537b0
jmp 0x10053e9d
push ebx
call fcn.100e25fa
mov ecx, dword [0x10194d48]
add esp, 4
mov eax, dword fs:[0x2c]
pop edi
mov eax, dword [eax + ecx*4]
pop ebx
pop esi
mov dword [eax + 0x10], str.bad_bpp
xor eax, eax
mov esp, ebp
pop ebp
ret
push edx
call fcn.100e25fa
mov ecx, dword [0x10194d48]
add esp, 4
mov eax, dword fs:[0x2c]
pop edi
mov eax, dword [eax + ecx*4]
pop ebx
pop esi
mov dword [eax + 0x10], str.invalid
xor eax, eax
mov esp, ebp
pop ebp
ret
sub ebx, dword [ebp - 0x34]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0xc], edi
sub ebx, dword [ebp - 0x24]
je 0x10053a09
test ebx, ebx
jns 0x100539d3
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xac], eax
jmp 0x10053a09
cmp dword [esi + 0x10], edi
je 0x10053a03
mov edx, dword [esi + 0xb0]
mov eax, edx
sub eax, dword [esi + 0xac]
cmp eax, ebx
jge 0x10053a03
sub ebx, eax
mov dword [esi + 0xac], edx
mov eax, dword [esi + 0x14]
push ebx
push dword [esi + 0x1c]
call eax
mov ecx, dword [ebp - 0x28]
add esp, 8
jmp 0x10053a09
add dword [esi + 0xac], ebx
cmp ecx, 0x18
jne 0x10053a15
mov eax, dword [esi]
lea eax, [eax + eax*2]
jmp 0x10053a22
cmp ecx, 0x10
jne 0x10053a20
mov eax, dword [esi]
add eax, eax
jmp 0x10053a22
xor eax, eax
neg eax
and eax, 3
mov dword [ebp - 0x60], eax
cmp ecx, 0x18
jne 0x10053a41
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x2c], ebx
jmp 0x10053c27
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov edx, dword [ebp - 0x10]
cmp ecx, 0x20
jne 0x10053a85
cmp edx, 0xff
jne 0x10053a85
cmp dword [ebp - 0x14], 0xff00
mov ecx, dword [ebp - 0x30]
jne 0x10053a88
cmp ecx, 0xff0000
jne 0x10053a88
cmp dword [ebp - 0x1c], 0xff000000
mov dword [ebp - 0x2c], ebx
jne 0x10053aaf
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x2c], ebx
jmp 0x10053c27
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x10053f72
cmp dword [ebp - 0x14], eax
je 0x10053f72
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], eax
test edx, edx
je 0x10053f72
call fcn.10052c00
sub eax, 7
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x14]
movzx eax, al
mov dword [ebp - 0x48], eax
call fcn.10052c00
sub eax, 7
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x10]
movzx eax, al
mov dword [ebp - 0x4c], eax
call fcn.10052c00
sub eax, 7
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x1c]
movzx eax, al
mov dword [ebp - 0x38], eax
call fcn.10052c00
sub eax, 7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
cmp dword [ebp - 0x48], 8
movzx eax, al
mov dword [ebp - 0x44], eax
ja 0x10053f47
cmp dword [ebp - 0x4c], 8
ja 0x10053f47
cmp dword [ebp - 0x38], 8
ja 0x10053f47
cmp eax, 8
ja 0x10053f47
mov ecx, dword [esi + 4]
mov edx, ecx
mov dword [ebp - 0x34], edi
test ecx, ecx
jle 0x10053e9d
nop word [eax + eax]
cmp dword [ebp - 0xc], 0
mov eax, dword [esi]
mov dword [ebp - 0x24], 0
je 0x10053da2
test eax, eax
jle 0x10053e4c
lea ecx, [esi + 0x20]
nop
mov eax, dword [esi + 0xac]
mov dword [ebp - 8], ecx
cmp eax, dword [esi + 0xb0]
jae 0x10053c7c
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053ca8
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x20]
mov dword [ebp - 8], ecx
je 0x10053ca3
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov ecx, dword [ebp - 8]
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053ca8
xor dl, dl
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x20]
mov byte [edi + eax + 2], dl
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x10053cc8
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053ce7
cmp dword [ecx], 0
je 0x10053ce5
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053ce7
xor cl, cl
mov eax, dword [ebp - 0x20]
mov byte [edi + eax + 1], cl
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x10053d0a
mov dl, byte [eax]
lea ecx, [esi + 0x20]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053d2f
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
je 0x10053d2d
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov ecx, dword [ebp - 8]
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053d32
xor dl, dl
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc], 2
mov byte [ebx + edi], dl
jne 0x10053d7b
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jae 0x10053d57
mov dl, byte [eax]
lea ecx, [esi + 0x20]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053d7e
cmp dword [ecx], 0
je 0x10053d77
mov ecx, esi
call fcn.10049d80
mov eax, dword [esi + 0xac]
mov ecx, dword [ebp - 8]
mov dl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
jmp 0x10053d7e
xor dl, dl
jmp 0x10053d7e
or dl, 0xff
mov byte [ebx + edi + 3], dl
add edi, 4
movzx eax, dl
mov edx, dword [ebp - 0x24]
or dword [ebp - 0x40], eax
inc edx
mov dword [ebp - 0x24], edx
cmp edx, dword [esi]
jl 0x10053c60
mov dword [ebp - 0x3c], edi
jmp 0x10053e4c
test eax, eax
jle 0x10053e4c
nop word [eax + eax]
mov ecx, esi
call fcn.10049e70
cmp dword [ebp - 0x28], 0x10
je 0x10053dce
mov ecx, esi
mov edi, eax
call fcn.10049e70
shl eax, 0x10
add eax, edi
mov edi, dword [ebp - 0x3c]
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x54]
mov ecx, eax
and ecx, dword [ebp - 0x30]
mov dword [ebp - 8], eax
call fcn.10052c60
mov ecx, dword [ebp - 8]
push dword [ebp - 0x4c]
and ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
mov byte [ebx + edi], al
call fcn.10052c60
mov ecx, dword [ebp - 8]
push dword [ebp - 0x38]
and ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x5c]
mov byte [ebx + edi + 1], al
call fcn.10052c60
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov byte [ebx + edi + 2], al
test ecx, ecx
je 0x10053e2b
push dword [ebp - 0x44]
and ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.10052c60
add esp, 4
jmp 0x10053e30
mov eax, 0xff
or dword [ebp - 0x40], eax
mov byte [ebx + edi + 3], al
add edi, 4
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x24], eax
cmp eax, dword [esi]
jl 0x10053db0
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x10053e89
cmp dword [esi + 0x10], 0
je 0x10053e83
mov eax, dword [esi + 0xb0]
mov ecx, eax
sub ecx, dword [esi + 0xac]
cmp ecx, edx
jge 0x10053e83
mov dword [esi + 0xac], eax
mov eax, edx
sub eax, ecx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
jmp 0x10053e89
add dword [esi + 0xac], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0x34], eax
mov edx, ecx
cmp eax, ecx
jl 0x10053c40
cmp dword [ebp - 0x40], 0
jne 0x10053ec2
mov eax, dword [esi]
imul eax, ecx
lea eax, [eax*4 - 1]
test eax, eax
js 0x10053ec2
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], 0xff
sub eax, 4
jns 0x10053eb6
mov edx, dword [esi + 4]
cmp dword [ebp - 0x50], 0
jle 0x10053f2f
xor edi, edi
mov dword [ebp - 0x18], edi
test edx, 0xfffffffe
jle 0x10053f2f
mov ecx, dword [esi]
sub edx, edi
mov eax, ecx
dec edx
imul eax, edi
xor edi, edi
imul edx, ecx
lea eax, [ebx + eax*4]
mov dword [ebp - 0x50], eax
lea edx, [ebx + edx*4]
lea eax, [ecx*4]
test eax, eax
jle 0x10053f1d
mov ebx, dword [ebp - 0x50]
sub ebx, edx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [edx + ebx - 1]
inc edi
mov byte [edx + ebx - 1], al
mov byte [edx - 1], cl
mov eax, dword [esi]
shl eax, 2
cmp edi, eax
jl 0x10053f00
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
mov edx, dword [esi + 4]
inc edi
mov eax, edx
mov dword [ebp - 0x18], edi
sar eax, 1
cmp edi, eax
jl 0x10053ed5
mov eax, dword [ebp - 0x64]
mov ecx, dword [esi]
pop edi
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 4]
pop ebx
pop esi
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100e25fa
mov ecx, dword [0x10194d48]
add esp, 4
mov eax, dword fs:[0x2c]
pop edi
mov eax, dword [eax + ecx*4]
pop ebx
pop esi
mov dword [eax + 0x10], str.bad_masks
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100e25fa
mov ecx, dword [0x10194d48]
add esp, 4
mov eax, dword fs:[0x2c]
pop edi
mov eax, dword [eax + ecx*4]
pop ebx
pop esi
mov dword [eax + 0x10], 0x1015024c
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10194d48]
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x10150230
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10194d48]
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x10150224
xor eax, eax
mov esp, ebp
pop ebp
ret