Function at 0x6ad8bec0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
cmp dword [esp + 0xb8], 1
je 0x6ad8c79e
cmp dword [esp + 0xb8], 2
je 0x6ad8c433
mov ebp, dword [esp + 0xb8]
test ebp, ebp
je 0x6ad8c461
mov eax, dword [esp + 0xbc]
mov dword [eax], 0
mov eax, dword [esp + 0xbc]
mov dword [eax + 0x3fc], 0
mov eax, dword [esp + 0xbc]
lea edi, [eax + 4]
mov ecx, eax
xor eax, eax
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x400
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0
mov eax, dword [esp + 0xbc]
add eax, 0x400
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xbc]
sub eax, 1
add esi, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], esi
movzx edx, byte [esi]
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x58], esi
test eax, eax
jns 0x6ad8bfae
jmp 0x6ad8bfb9
movzx ecx, byte [edi + eax]
cmp edx, ecx
jg 0x6ad8c74a
mov edx, ecx
add dword [ebx + edx*4], 1
mov esi, eax
sub eax, 1
jae 0x6ad8bfa0
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0xb8]
xor esi, esi
xor ebx, ebx
mov edi, 1
sub ebp, eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1c], ebp
mov ebp, esi
mov esi, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, eax
add ecx, dword [eax + 0x400]
mov dword [eax], 0
mov dword [esp + 0x18], edi
lea eax, [edi - 1]
mov dword [esp + 0xbc], edx
mov dword [esp + 0x14], eax
mov eax, edi
lea esi, [esi]
mov edi, eax
mov edx, dword [esp + 0x14]
or edi, ebp
lea edi, [esi + edi*4]
add ebx, dword [edi]
mov dword [edi], ebx
mov edi, eax
add eax, 1
shl edi, 8
or edi, edx
add ecx, dword [esi + edi*4]
cmp eax, 0x100
jne 0x6ad8c008
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0xbc]
add ebp, 0x100
mov eax, dword [edx + edi*4]
add eax, ecx
add ecx, ebx
mov dword [edx + edi*4], ecx
mov ecx, ebp
or ecx, edi
add edi, 1
add eax, dword [esi + ecx*4]
mov ecx, eax
cmp ebp, 0xff00
jne 0x6ad8bff0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jle 0x6ad8c66d
mov eax, dword [esp + 0xb4]
mov esi, dword [esp + 0x58]
lea ecx, [ebp*4]
lea eax, [eax + esi*4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
add eax, ecx
mov dword [esp + 0x54], eax
lea eax, [ebp - 2]
cmp ebp, 1
je 0x6ad8c0cd
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0xb0]
mov edi, dword [esi + eax*4]
movzx edx, byte [ebx + edi + 1]
movzx edi, byte [ebx + edi]
shl edi, 8
or edx, edi
mov edi, dword [esp + 0x2c]
lea edi, [edi + edx*4]
mov edx, dword [edi]
sub edx, 1
mov dword [edi], edx
mov edi, dword [esp + 0xb4]
mov dword [edi + edx*4], eax
sub eax, 1
jae 0x6ad8c09f
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x4c], 0xfe
mov edi, dword [esp + 0xb4]
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0xb0]
movzx eax, byte [eax + edx + 1]
movzx edx, byte [esi + edx]
mov esi, dword [esp + 0x2c]
shl edx, 8
or eax, edx
lea edx, [esi + eax*4]
lea esi, [ebp - 1]
mov eax, dword [edx]
mov dword [esp + 0x50], esi
sub eax, 1
mov dword [edx], eax
mov dword [edi + eax*4], esi
mov esi, dword [esp + 0xb8]
lea eax, [ebp + ebp]
sub esi, eax
mov dword [esp + 0x5c], esi
mov esi, ebp
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 0xff
mov dword [esp + 0x7c], ebp
shl eax, 8
mov dword [esp + 0x60], eax
jmp 0x6ad8c159
sub dword [esp + 0x48], 1
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x6ad8cc56
mov eax, esi
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x60]
or edx, esi
mov esi, dword [esp + 0x2c]
mov esi, dword [esi + edx*4]
mov edx, eax
sub edx, esi
cmp edx, 1
jle 0x6ad8c144
mov edi, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb4]
lea edi, [edi + esi*4]
lea ebx, [ebx + eax*4]
mov ecx, dword [edi]
lea eax, [edi + 4]
cmp dword [esp + 0x50], ecx
mov dword [esp + 0x3c], ebx
cmovne eax, edi
mov dword [esp + 0x70], ecx
sub ebx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5c]
mov ebp, ebx
cmp eax, 0x3ff
jg 0x6ad8c24d
sar ebx, 2
cmp eax, ebx
jge 0x6ad8cd08
cmp ebp, 0x3ffffc
jg 0x6ad8ce0d
cmp ebp, 0x3fffc
jbe 0x6ad8cd62
cmp ebp, 0x3fffffc
jbe 0x6ad8cdf9
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x6addb6e0]
add eax, 0x18
cmp eax, 0xf
jle 0x6ad8cd83
mov edx, eax
and edx, 0xfffffffe
lea ecx, [edx - 6]
mov edx, ebx
sar edx, cl
mov ecx, eax
mov edx, dword [edx*4 + 0x6addb2e0]
sar ecx, 1
sub ecx, 7
shl edx, cl
mov ecx, edx
cmp eax, 0x17
jle 0x6ad8c229
mov eax, ebx
cdq
idiv ecx
lea ecx, [ecx + eax + 1]
sar ecx, 1
mov eax, ebx
cdq
idiv ecx
lea eax, [ecx + eax + 1]
sar eax, 1
mov edx, eax
imul edx, eax
cmp ebx, edx
setl dl
movzx edx, dl
sub eax, edx
cmp dword [esp + 0x5c], eax
jl 0x6ad8cdbf
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
cmp ebp, 0x1000
jle 0x6ad8cd18
mov dword [esp + 0x38], esi
mov ebp, dword [esp + 0x40]
xor edi, edi
lea esi, [esi]
nop
mov esi, ebp
add ebp, 0x1000
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x20]
mov dword [esp], ebp
mov ecx, esi
call fcn.6ad8ab00
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
sub ebx, ebp
sar ebx, 2
cmp ebx, eax
jg 0x6ad8c2c4
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x400
test edi, 1
je 0x6ad8c323
lea esi, [esi]
nop
mov eax, dword [esp + 0x28]
mov edx, esi
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov edx, dword [esp + 0x20]
shl eax, 2
lea ecx, [esi + eax]
sub esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov ecx, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
call fcn.6ad89b80
sar dword [esp + 0x24], 1
mov eax, dword [esp + 0x24]
shl dword [esp + 0x28], 1
test al, 1
jne 0x6ad8c2e0
mov eax, dword [esp + 0x14]
add edi, 1
sub eax, ebp
cmp eax, 0x1000
jg 0x6ad8c288
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, ebp
mov ebx, 0x400
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
call fcn.6ad8ab00
mov eax, ebp
jmp 0x6ad8c366
add ebx, ebx
sar edi, 1
je 0x6ad8c3ae
test edi, 1
je 0x6ad8c360
mov ecx, dword [esp + 0x1c]
lea edx, [ebx*4]
mov dword [esp], eax
mov ebp, eax
sub ebp, edx
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x20]
add ebx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
mov ecx, ebp
call fcn.6ad89b80
sar edi, 1
mov eax, ebp
jne 0x6ad8c366
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x6ad8c850
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x50], edi
jne 0x6ad8c144
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0xb0]
add ecx, dword [esp + 0xb8]
mov edx, dword [eax - 4]
mov edi, dword [edi + edx*4]
mov dword [esp + 0x14], edi
lea ebp, [edi + 2]
mov edi, dword [esp + 0x3c]
cmp eax, edi
jae 0x6ad8c427
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
mov edi, dword [ebx]
test edi, edi
jns 0x6ad8c7c0
mov eax, dword [esp + 0x3c]
mov dword [ebx - 4], edi
add ebx, 4
cmp ebx, eax
jb 0x6ad8c403
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x40]
mov dword [eax - 4], edx
jmp 0x6ad8c144
mov esi, dword [esp + 0xb0]
movzx eax, byte [esi + 1]
cmp byte [esi], al
setae al
mov esi, dword [esp + 0xb4]
movzx eax, al
mov dword [esi + eax*4], 0
setb al
movzx eax, al
mov dword [esi + eax*4], 1
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx]
mov esi, dword [esp + 0xb4]
mov dword [esi + edx*4], eax
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x403fc], esi
mov eax, dword [esp + 0xb4]
mov esi, 0xfe
mov edi, esi
sub eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xbc]
mov esi, edi
mov eax, dword [eax + edi*4 + 4]
mov dword [esp + 0x14], eax
lea ebx, [eax - 1]
mov eax, edi
mov edi, ebp
shl eax, 8
mov ebp, esi
mov dword [esp + 0x28], eax
mov eax, 0xff
nop
mov edx, eax
mov esi, ebx
shl edx, 8
or edx, ebp
lea edx, [edi + edx*4]
sub esi, dword [edx]
mov dword [edx], ebx
mov edx, dword [esp + 0x28]
or edx, eax
mov edx, dword [edi + edx*4]
cmp edx, ecx
jg 0x6ad8d014
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea ebx, [ebx + ecx*4]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x30]
lea ebx, [ebx + edx*4]
mov dword [esp + 0x20], ebx
mov ebx, esi
sub ebx, ecx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x14]
nop
mov eax, dword [esp + 0x24]
mov edx, dword [ebx]
mov dword [ebx + eax*4], edx
mov eax, dword [esp + 0x20]
sub ebx, 4
cmp ebx, eax
jne 0x6ad8c520
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, edx
sub ebx, ecx
lea ecx, [edx - 1]
lea ebx, [esi + ebx - 1]
sub eax, 1
cmp eax, ebp
jne 0x6ad8c4d0
mov ebp, edi
mov edi, dword [esp + 0x28]
mov edx, edi
or edx, eax
lea esi, [ebp + edx*4]
lea edx, [eax + 1]
or edx, edi
mov edi, ebx
sub edi, dword [esi]
add edi, 1
mov dword [ebp + edx*4], edi
lea edi, [eax - 1]
mov dword [esi], ebx
test eax, eax
jne 0x6ad8c4a9
mov ebp, dword [esp + 0xbc]
mov edx, 0xff
mov eax, edx
mov esi, dword [esp + 0x2c]
mov ebx, 0xffffffff
xor ecx, ecx
shl eax, 8
sub eax, 0x100
mov dword [esp + 0x1c], eax
or eax, edx
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0xb4]
lea edi, [esi + eax*4]
mov eax, dword [ebp + edx*4]
lea eax, [esi + eax*4 - 4]
cmp eax, edi
jb 0x6ad8c664
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xbc], ebp
mov edx, dword [eax]
mov esi, edx
not esi
mov dword [eax], esi
test edx, edx
jle 0x6ad8c64a
mov esi, dword [esp + 0xb0]
mov ebp, edx
movzx esi, byte [esi + edx - 1]
mov ecx, esi
sub ebp, 1
je 0x6ad8c602
mov edi, dword [esp + 0xb0]
cmp cl, byte [edi + edx - 2]
jae 0x6ad8c602
neg edx
mov ebp, edx
mov ecx, dword [esp + 0x14]
mov edx, ecx
cmp esi, ebx
je 0x6ad8c641
cmp ebx, 0xffffffff
je 0x6ad8c628
mov edi, dword [esp + 0x1c]
sub ecx, dword [esp + 0xb4]
sar ecx, 2
or ebx, edi
mov edi, dword [esp + 0x2c]
mov dword [edi + ebx*4], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xb4]
or edx, esi
mov edx, dword [ecx + edx*4]
lea edx, [ebx + edx*4]
mov ebx, esi
lea esi, [edx - 4]
mov dword [edx], ebp
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x18]
sub eax, 4
cmp eax, esi
jae 0x6ad8c5d0
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0xbc]
sub edx, 1
jne 0x6ad8c585
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb8]
movzx eax, byte [eax]
cmp byte [esi + edi - 2], al
jae 0x6ad8c695
mov esi, dword [esp + 0xb8]
neg esi
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0xb8]
mov edx, dword [esi + eax*4]
mov esi, dword [esp + 0xb4]
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x64]
lea ecx, [edx + 4]
mov dword [edx], esi
mov esi, dword [esp + 0xb4]
lea ebp, [esi + edi*4]
mov edi, eax
cmp esi, ebp
jae 0x6ad8c461
mov dword [esp + 0x18], ebp
jmp 0x6ad8c73e
mov ebx, dword [esp + 0xb0]
mov ebp, eax
sub ebp, 1
mov dword [esp + 0x14], ebp
movzx edx, byte [ebx + eax - 1]
je 0x6ad8c6f7
mov ebp, dword [esp + 0xb0]
cmp byte [ebp + eax - 2], dl
jae 0x6ad8c6fd
neg eax
mov dword [esp + 0x14], eax
mov eax, ecx
cmp edx, edi
je 0x6ad8c724
mov ebx, dword [esp + 0xbc]
sub eax, dword [esp + 0xb4]
sar eax, 2
mov dword [ebx + edi*4], eax
mov edi, dword [esp + 0xb4]
mov eax, dword [ebx + edx*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x14]
lea ecx, [eax + 4]
mov dword [eax], edi
mov edi, edx
mov eax, dword [esp + 0x18]
add esi, 4
cmp esi, eax
jae 0x6ad8c461
mov eax, dword [esi]
test eax, eax
jg 0x6ad8c6d3
not eax
mov dword [esi], eax
jmp 0x6ad8c72f
mov ebp, ecx
sub dword [esp + 0x58], 1
shl ebp, 8
or ebp, edx
mov edx, dword [esp + 0x2c]
add dword [edx + ebp*4], 1
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0xb4]
mov dword [ebp + edx*4], eax
lea eax, [esi - 2]
cmp esi, 1
je 0x6ad8bfb9
mov esi, dword [esp + 0x2c]
jmp 0x6ad8c78d
shl edx, 8
or edx, ecx
add dword [esi + edx*4], 1
sub eax, 1
jb 0x6ad8c797
mov edx, ecx
movzx ecx, byte [edi + eax]
cmp ecx, edx
jle 0x6ad8c77f
mov edx, ecx
jmp 0x6ad8bf90
mov eax, dword [esp + 0xb4]
mov dword [eax], 0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xb0]
lea ebp, [eax + edi*4]
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0xb0]
mov edx, dword [ebp]
lea edx, [esi + edx + 2]
mov esi, dword [ebp + 4]
mov ebp, dword [esp + 0xb0]
lea esi, [ebp + esi + 2]
cmp eax, ecx
jae 0x6ad8c41b
cmp edx, esi
jae 0x6ad8c829
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x1c]
jmp 0x6ad8c81a
add eax, 1
add edx, 1
cmp eax, ecx
jae 0x6ad8cd38
cmp edx, esi
jae 0x6ad8c821
movzx ebx, byte [edx]
cmp byte [eax], bl
je 0x6ad8c808
mov dword [esp + 0x1c], ebp
mov ebx, dword [esp + 0x40]
cmp eax, ecx
jae 0x6ad8c41b
cmp edx, esi
jae 0x6ad8c40d
movzx eax, byte [eax]
cmp byte [edx], al
jb 0x6ad8c40d
jmp 0x6ad8c41b
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xb0]
mov dword [esp], ebp
call fcn.6ad8ab00
mov dword [esp + 0x74], esi
mov dword [esp + 0x34], ebp
lea esi, [esi]
nop
mov eax, dword [esp + 0x34]
mov eax, dword [eax - 4]
test eax, eax
js 0x6ad8c9eb
mov esi, dword [esp + 0x20]
xor ebp, ebp
lea eax, [esi + eax*4]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
sub edx, ecx
mov edi, edx
mov esi, edx
sar edi, 2
sar esi, 3
mov dword [esp + 0x1c], edi
test edx, edx
jle 0x6ad8cc3f
mov edx, dword [eax]
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x24], 0xffffffff
lea edi, [edi + edx + 2]
mov dword [esp + 0x38], ebp
lea ebx, [ebx + eax + 2]
mov ebp, edi
cmp edi, ebx
setb byte [esp + 0x28]
lea esi, [esi]
mov eax, dword [esp + 0x30]
lea edi, [eax + esi*4]
mov edx, dword [edi]
mov eax, edx
lea ecx, [edx*4]
not eax
shl eax, 2
test edx, edx
cmovns eax, ecx
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0xb0]
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea edx, [ecx + edx + 2]
lea ecx, [ecx + eax + 2]
cmp edx, ecx
jae 0x6ad8c9e4
cmp byte [esp + 0x28], 0
mov eax, ebp
je 0x6ad8c9e4
mov dword [esp + 0x18], ecx
jmp 0x6ad8c952
mov ecx, dword [esp + 0x18]
add edx, 1
add eax, 1
cmp edx, ecx
jae 0x6ad8c990
cmp eax, ebx
jae 0x6ad8c959
movzx ecx, byte [eax]
cmp byte [edx], cl
je 0x6ad8c940
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jae 0x6ad8c990
mov ecx, 1
cmp eax, ebx
jae 0x6ad8c974
movzx ecx, byte [edx]
movzx eax, byte [eax]
sub ecx, eax
js 0x6ad8c9cc
mov eax, esi
sar eax, 1
test esi, esi
jle 0x6ad8c99e
mov dword [esp + 0x1c], esi
mov esi, eax
mov dword [esp + 0x24], ecx
jmp 0x6ad8c8e8
cmp eax, ebx
jb 0x6ad8c9cc
mov eax, esi
xor ecx, ecx
sar eax, 1
test esi, esi
jg 0x6ad8c97c
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x30], esi
jb 0x6ad8ca18
sub dword [esp + 0x34], 4
test ebp, ebp
jne 0x6ad8c9fe
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x14], esi
jne 0x6ad8c878
mov esi, dword [esp + 0x74]
jmp 0x6ad8c3ba
lea eax, [edi + 4]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
not eax
and eax, 1
sub esi, eax
jmp 0x6ad8c974
mov eax, ebp
jmp 0x6ad8c95d
mov esi, dword [esp + 0x20]
not eax
mov ebp, 1
lea eax, [esi + eax*4]
jmp 0x6ad8c890
mov eax, dword [esp + 0x34]
lea esi, [esi]
mov esi, dword [eax - 4]
sub eax, 4
test esi, esi
js 0x6ad8ca08
mov dword [esp + 0x34], eax
jmp 0x6ad8c9b5
test ecx, ecx
jne 0x6ad8ca22
mov eax, dword [esp + 0x30]
not dword [eax]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, ecx
sub edx, edi
sub eax, ecx
mov esi, edx
mov ebx, eax
sar esi, 2
sar ebx, 2
test eax, eax
jle 0x6ad8cb75
cmp edx, eax
je 0x6ad8cdb2
add ecx, 1
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x6c], ebp
mov ebp, ebx
lea esi, [esi]
nop
cmp ebp, esi
jle 0x6ad8cb90
mov edi, dword [eax - 4]
mov ebx, dword [esp + 0x14]
lea edx, [eax - 4]
mov eax, dword [esp + 0x18]
lea ecx, [ebx - 4]
mov dword [esp + 0x1c], edi
lea edi, [esi + 1]
lea ebx, [eax - 1]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
sub eax, 5
mov edi, eax
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], edi
sub eax, ecx
shr eax, 2
mov ecx, eax
not eax
neg ecx
shl ecx, 2
cmp edi, ebx
mov edi, 0
cmovb ecx, edi
shl eax, 2
cmp dword [esp + 0x38], ebx
mov ebx, 0xfffffffc
cmovae ebx, eax
mov edi, dword [esp + 0x18]
lea eax, [ecx - 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x24]
mov ecx, edx
lea esi, [esi]
mov edx, dword [eax]
sub eax, 4
sub ecx, 4
mov dword [ecx + 4], edx
mov edx, dword [ecx]
mov dword [eax + 4], edx
cmp eax, edi
jae 0x6ad8caf0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
sub ebp, ecx
cmp ebp, esi
jle 0x6ad8cb30
mov ecx, dword [esp + 0x38]
mov eax, dword [eax - 4]
add edx, ecx
mov dword [esp + 0x1c], eax
jmp 0x6ad8cae0
mov dword [esp + 0x18], edi
test esi, esi
jle 0x6ad8cc32
test ebp, ebp
jle 0x6ad8cc32
cmp esi, ebp
jne 0x6ad8ca70
mov ebx, ebp
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
nop
mov ecx, dword [edi]
mov esi, dword [eax]
add edi, 4
add eax, 4
mov dword [edi - 4], esi
mov dword [eax - 4], ecx
sub ebx, 1
jne 0x6ad8cb60
sub dword [esp + 0x34], edx
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x40], eax
je 0x6ad8c9c3
mov dword [esp + 0x14], eax
jmp 0x6ad8c9ac
mov edi, dword [esp + 0x18]
mov edx, eax
mov ecx, dword [edi]
lea edi, [ebp + 1]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x14]
sub edx, edi
mov edi, dword [esp + 0x44]
sub edx, 1
mov ebx, edx
and edx, 0xfffffffc
shr ebx, 2
cmp eax, edi
mov edi, 0
lea ebx, [ebx*4 + 4]
cmovb edx, edi
mov dword [esp + 0x1c], ebx
mov ebx, 4
cmovae ebx, dword [esp + 0x1c]
lea edi, [edx + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
lea esi, [esi]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
mov ebx, edi
lea esi, [esi]
mov ecx, dword [edx]
add edx, 4
add ebx, 4
mov dword [ebx - 4], ecx
mov ecx, dword [ebx]
mov dword [edx - 4], ecx
cmp edx, eax
jb 0x6ad8cbf8
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [edi + ebx]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
add edi, ecx
mov ecx, dword [esp + 0x24]
sub esi, ecx
cmp esi, ebp
jle 0x6ad8cb30
mov ecx, dword [edx + 4]
jmp 0x6ad8cbe8
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
jmp 0x6ad8cb75
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x40], esi
jae 0x6ad8c9ac
mov esi, dword [esp + 0x74]
jmp 0x6ad8c3ba
sub eax, 1
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
test esi, esi
jg 0x6ad8c12b
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, ebp
mov ecx, dword [esp + 0xb4]
lea eax, [ecx + edx*4]
mov ebx, dword [eax]
test ebx, ebx
jns 0x6ad8ccd8
mov eax, edx
mov ebx, dword [ecx + eax*4]
mov ebp, eax
not ebx
mov dword [ecx + eax*4], ebx
sub eax, 1
mov dword [esi + ebx*4], edx
mov ebx, dword [ecx + eax*4]
test ebx, ebx
js 0x6ad8cc85
mov dword [esi + ebx*4], edx
mov edx, ebp
sub edx, 2
jns 0x6ad8cc7a
mov ebp, edi
cmp ebp, 0xffff
jle 0x6ad8ce3a
mov eax, ebp
cmp ebp, 0xffffff
jbe 0x6ad8d01b
shr eax, 0x18
mov ecx, dword [eax*4 + 0x6addb6e0]
add ecx, 0x18
jmp 0x6ad8ce52
mov dword [esp + 0xb4], ecx
mov ebx, edx
jmp 0x6ad8cced
mov ecx, dword [eax - 4]
sub eax, 4
test ecx, ecx
js 0x6ad8cd45
mov ecx, dword [eax]
mov ebp, eax
mov dword [esi + ecx*4], ebx
sub ebx, 1
jae 0x6ad8cce3
not edx
mov ebp, edi
mov dword [eax], edx
jmp 0x6ad8cca8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
call fcn.6ad8ab00
jmp 0x6ad8c3ae
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x6ad8c427
mov eax, ebx
mov ecx, dword [esp + 0xb4]
sub eax, edx
mov dword [ebp], eax
test ebx, ebx
je 0x6ad8cca6
mov edx, ebx
jmp 0x6ad8cc83
test bh, 0xff
je 0x6ad8ce1c
mov eax, ebp
sar eax, 0xa
mov eax, dword [eax*4 + 0x6addb6e0]
add eax, 8
cmp eax, 0xf
jg 0x6ad8c1fb
cmp eax, 7
jle 0x6ad8ce2b
mov edx, eax
sar eax, 1
and edx, 0xfffffffe
lea ecx, [edx - 6]
mov edx, ebx
sar edx, cl
mov ecx, 7
sub ecx, eax
mov eax, dword [edx*4 + 0x6addb2e0]
sar eax, cl
add eax, 1
jmp 0x6ad8c234
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
jmp 0x6ad8cb60
mov edx, 0x400
cmp eax, edx
cmovle edx, eax
mov dword [esp + 0x1c], edx
lea eax, [edx*4]
neg eax
mov edi, dword [esp + 0x3c]
add eax, edi
mov edi, dword [esp + 0x40]
mov ebp, eax
mov dword [esp + 0x30], eax
sub ebp, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
jmp 0x6ad8c26d
mov eax, ebp
sar eax, 0x12
mov eax, dword [eax*4 + 0x6addb6e0]
add eax, 0x10
jmp 0x6ad8c1f2
mov dword [esp + 0x1c], 0x400
mov eax, 0xfffff000
jmp 0x6ad8cdd6
movzx eax, bl
mov eax, dword [eax*4 + 0x6addb6e0]
jmp 0x6ad8c1f2
mov eax, dword [ebx*4 + 0x6addb2e0]
sar eax, 4
jmp 0x6ad8c243
test ebp, 0xff00
jne 0x6ad8d02d
mov eax, ebp
movzx eax, al
mov ecx, dword [eax*4 + 0x6addb6e0]
add ecx, ecx
mov eax, 0x55555556
mov esi, dword [esp + 0x58]
mov dword [esp + 0x88], ebp
imul ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], ebp
sar ecx, 0x1f
sub esi, dword [esp + 0xb8]
lea ebp, [eax + 4]
mov eax, dword [esp + 0xb4]
sub edx, ecx
mov dword [esp + 0x80], edx
mov edx, dword [eax]
cmp esi, edx
jge 0x6ad8cf25
mov edi, esi
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x54]
mov ebx, ecx
mov dword [esp + 0xb4], ecx
xor eax, eax
mov ecx, edx
mov dword [esp + 0x14], 0
mov edx, ebp
mov ebp, ebx
mov dword [esp + 0x18], edi
jmp 0x6ad8ceef
test eax, eax
je 0x6ad8cecb
mov dword [ebx + eax*4], eax
mov eax, dword [esi + edi]
lea edi, [ebp + eax*4 + 4]
mov eax, edi
sub eax, ebx
cmp eax, 4
jg 0x6ad8cfc0
sete al
mov ebx, edi
movzx eax, al
neg eax
cmp ebx, esi
jae 0x6ad8cf02
mov ecx, dword [ebx]
lea edi, [ecx*4]
test ecx, ecx
jns 0x6ad8cec4
sub ebx, edi
add eax, ecx
cmp ebx, esi
jb 0x6ad8ceed
mov ecx, ebp
mov edi, dword [esp + 0x18]
mov ebp, edx
test eax, eax
je 0x6ad8cf11
mov dword [ebx + eax*4], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6ad8cf25
mov eax, ebp
mov edx, dword [ecx]
sub eax, esi
add ebp, eax
cmp edi, edx
jl 0x6ad8cea5
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
movzx edx, byte [eax]
mov eax, dword [esp + 0x54]
lea ebx, [eax + esi*4]
test ecx, ecx
js 0x6ad8c478
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb4]
lea eax, [esi - 1]
test esi, esi
jne 0x6ad8cf71
jmp 0x6ad8c478
sub eax, 1
jb 0x6ad8c478
mov ecx, edx
movzx edx, byte [edi + eax]
cmp edx, ecx
jge 0x6ad8cf68
lea esi, [eax - 1]
test eax, eax
jne 0x6ad8cf99
jmp 0x6ad8d041
sub esi, 1
jb 0x6ad8c46c
mov ecx, edx
movzx edx, byte [edi + esi]
cmp edx, ecx
jle 0x6ad8cf90
mov ecx, eax
sub ecx, esi
cmp ecx, 1
mov ecx, dword [ebx]
jg 0x6ad8d056
not eax
sub ebx, 4
mov dword [ebp + ecx*4], eax
jmp 0x6ad8cf55
lea eax, [esp + 0x80]
mov dword [esp + 4], edi
mov ecx, ebp
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x8c], 0
call fcn.6ad87d50
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x1c]
test eax, eax
je 0x6ad8d006
add dword [esp + 0x14], eax
mov ebx, edi
xor eax, eax
jmp 0x6ad8cee9
mov eax, ebx
mov ebx, edi
sub eax, edi
sar eax, 2
jmp 0x6ad8cee9
mov ebx, esi
jmp 0x6ad8c547
sar eax, 0x10
mov ecx, dword [eax*4 + 0x6addb6e0]
add ecx, 0x10
jmp 0x6ad8ce52
mov eax, ebp
sar eax, 8
mov ecx, dword [eax*4 + 0x6addb6e0]
add ecx, 8
jmp 0x6ad8ce52
mov eax, dword [ebx]
mov esi, dword [esp + 0xb4]
mov dword [esi + eax*4], 0
jmp 0x6ad8c478
mov dword [ebp + ecx*4], eax
sub ebx, 4
jmp 0x6ad8cf55