Function at 0x100ddce0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x10151370
sub esp, 0x78
push ebp
mov ebp, dword [esp + 0x90]
cmp dword [ebp + 0x46a], 0
je 0x1015236f
cmp dword [ebp + 0x47c], 0
je 0x1015236f
cmp dword [ebp + 0x48e], 0
je 0x1015236f
mov ecx, dword [esp + 0xc0]
xor eax, eax
cmp dword [ecx], 3
mov edx, 1
sete al
mov dword [esp + 0x64], eax
cmp dword [ebp + 0x4d4], edx
jne 0x10152365
cmp dword [ebp + 0x4e0], 0x10
jne 0x10152365
cmp dword [esp + 0x94], 0
je 0x10152365
cmp dword [esp + 0x98], 0
je 0x10152365
cmp dword [esp + 0xb0], 0
mov eax, dword [ebp + 0x4ec]
push edi
lea edi, [eax + eax]
mov dword [esp + 0x54], edi
jne 0x10151411
add edi, 3
and edi, 0xfffffffc
mov dword [esp + 0x54], edi
push ebx
push esi
mov esi, dword [ebp + 0x4e8]
mov ebx, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], ebx
test esi, esi
je 0x10152358
test ebx, ebx
je 0x10152358
mov ax, word [esp + 0x94]
mov dword [esp + 0x34], 0
test ax, ax
jbe 0x101514bb
movzx ecx, ax
cmp ecx, ebx
jge 0x101514bb
mov ax, word [esp + 0x98]
test ax, ax
jbe 0x101514bb
movzx eax, ax
cmp eax, esi
jge 0x101514bb
fild dword [esp + 0x44]
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], eax
fidiv dword [esp + 0x14]
mov dword [esp + 0x34], edx
fst qword [esp + 0x80]
fild dword [esp + 0x58]
fidiv dword [esp + 0x28]
fst qword [esp + 0x74]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x101514a8
fstp st(0)
call fcn.100dcc82
mov ecx, eax
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x1015153c
fstp st(1)
call fcn.100dcc82
mov ecx, eax
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x1015153c
mov ecx, dword [esp + 0x90]
test ecx, ecx
jbe 0x10151507
mov eax, esi
imul eax, edi
xor edx, edx
div ecx
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
test eax, eax
jge 0x101514e7
fadd qword [0x102cf268]
call fcn.100dcf8e
call fcn.100dcc82
mov ecx, eax
cmp ecx, 1
mov dword [esp + 0x24], ecx
jge 0x1015150f
mov ecx, 1
mov dword [esp + 0x24], ecx
jmp 0x10151511
mov ecx, edx
mov dword [esp + 0x24], ecx
jmp 0x10151511
jne 0x1015151c
mov dword [esp + 0xc4], 0
mov eax, ecx
imul eax, ecx
mov dword [esp + 0x80], eax
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov dword [esp + 0x14], eax
mov eax, esi
cdq
idiv ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0xc8], 0
je 0x10151553
lea eax, [ebx + ebx*2 + 3]
and eax, 0xfffffffc
mov dword [esp + 0x30], eax
jmp 0x1015155a
lea edx, [ebx + ebx*2]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0xb8]
mov esi, ecx
imul esi, edi
cmp dword [eax], 0
jne 0x10151580
push eax
call fcn.100dbb61
movzx eax, ax
add esp, 4
test ax, ax
jne 0x10151643
lea eax, [esp + 0x18]
push eax
call fcn.100dbb61
movzx eax, ax
add esp, 4
test ax, ax
jne 0x10151643
mov ecx, dword [esp + 0x18]
push esi
push ecx
call fcn.100de77b
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x1015234e
cmp dword [esp + 0xc4], 0
je 0x10151656
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, esi
add esi, esi
push esi
push eax
call fcn.100de77b
mov ecx, dword [esp + 0x20]
mov edi, eax
push esi
push ecx
mov dword [esp + 0x50], edi
call fcn.100de77b
mov edx, dword [esp + 0x28]
mov ebx, eax
push esi
push edx
mov dword [esp + 0x50], ebx
call fcn.100de77b
add esp, 0x18
mov dword [esp + 0x3c], eax
test edi, edi
je 0x1015164b
test ebx, ebx
je 0x1015164b
test eax, eax
je 0x1015164b
cmp dword [esp + 0x34], 0
je 0x1015171a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push edx
call fcn.100de77b
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
jne 0x10151652
mov eax, dword [esp + 0x18]
push eax
call fcn.100db8dc
add esp, 4
mov eax, 0x66
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x78
ret
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x10151636
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x34], 0
je 0x1015171a
mov eax, dword [esp + 0x18]
lea edx, [ebx*4 + 4]
push edx
push eax
call fcn.100de77b
mov ecx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [ecx*4 + 4]
push edx
push eax
mov dword [esp + 0x8c], edi
call fcn.100de77b
add esp, 0x10
mov dword [esp + 0x4c], eax
test edi, edi
je 0x1015234e
test eax, eax
je 0x1015234e
xor esi, esi
mov dword [esp + 0x10], esi
test ebx, ebx
jle 0x101516d3
fld qword [esp + 0x80]
fild dword [esp + 0x10]
fmul st(1)
call fcn.100dcc82
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
mov dword [esp + 0x10], esi
jl 0x101516ba
fstp st(0)
mov ecx, dword [esp + 0x44]
xor esi, esi
cmp dword [esp + 0x28], esi
mov dword [edi + ebx*4], ecx
mov dword [esp + 0x10], esi
jle 0x1015170b
fld qword [esp + 0x74]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
fild dword [esp + 0x10]
fmul st(1)
call fcn.100dcc82
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
mov dword [esp + 0x10], esi
jl 0x101516f2
fstp st(0)
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*4], edx
mov esi, dword [esp + 0x30]
imul esi, dword [esp + 0x28]
cmp dword [esp + 0xc0], 0
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x6c], esi
je 0x1015173d
cmp dword [edi], 0
jne 0x10151760
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx]
lea eax, [esi + 0x4ac]
push eax
push edx
call fcn.100de77b
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x10151631
mov ecx, dword [edi]
mov edx, dword [esp + 0xa4]
lea eax, [ecx + esi + 0x80]
mov dword [edx], eax
test eax, eax
je 0x10151631
cmp dword [ebp + 0x4e4], 0
mov edi, 1
jl 0x10151797
mov eax, dword [ebp + 0x4e4]
inc eax
nop
add edi, edi
sub eax, 1
jne 0x10151790
mov ecx, dword [esp + 0x18]
lea esi, [edi + edi]
push esi
push ecx
call fcn.100de77b
mov edx, dword [esp + 0x20]
mov ebx, eax
push esi
push edx
mov dword [esp + 0x3c], ebx
call fcn.100de77b
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.100de77b
add esp, 0x18
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x1015234e
cmp dword [esp + 0x20], 0
je 0x1015234e
test eax, eax
je 0x1015234e
xor eax, eax
xor ecx, ecx
cmp word [ebp + 0x468], 8
jne 0x1015188b
mov esi, dword [ebp + 0x46a]
mov dword [esp + 0x10], esi
cmp cx, word [ebp + 0x466]
jae 0x10151826
lea esp, [esp]
cmp eax, edi
jge 0x10151826
xor edx, edx
mov word [ebx + eax*2], dx
movzx ecx, word [ebp + 0x466]
inc eax
cmp eax, ecx
jl 0x10151810
movzx ecx, word [ebp + 0x464]
mov edx, 0x10000
test cx, cx
je 0x1015183a
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x1015185f
cmp eax, edi
jge 0x1015190b
movzx si, byte [ecx + esi]
mov ebx, dword [esp + 0x2c]
mov word [ebx + eax*2], si
mov esi, dword [esp + 0x10]
inc ecx
inc eax
cmp ecx, edx
jl 0x10151840
cmp eax, edi
jge 0x1015190b
mov ecx, dword [esp + 0x2c]
jmp 0x10151870
movzx edx, word [ebp + 0x464]
movzx dx, byte [edx + esi - 1]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x10151870
jmp 0x1015190b
cmp cx, word [ebp + 0x466]
jae 0x101518aa
cmp eax, edi
jge 0x101518aa
xor edx, edx
mov word [ebx + eax*2], dx
movzx ecx, word [ebp + 0x466]
inc eax
cmp eax, ecx
jl 0x10151894
movzx ecx, word [ebp + 0x464]
mov edx, 0x10000
test cx, cx
je 0x101518be
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x101518e0
mov esi, dword [esp + 0x2c]
cmp eax, edi
jge 0x1015190b
mov ebx, dword [ebp + 0x46a]
mov bx, word [ebx + ecx*2]
mov word [esi + eax*2], bx
inc ecx
inc eax
cmp ecx, edx
jl 0x101518c8
cmp eax, edi
jge 0x1015190b
mov ecx, dword [esp + 0x2c]
jmp 0x101518f0
movzx edx, word [ebp + 0x464]
mov esi, dword [ebp + 0x46a]
mov dx, word [esi + edx*2 - 2]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x101518f0
xor eax, eax
xor ecx, ecx
cmp word [ebp + 0x47a], 8
jne 0x101519ab
mov esi, dword [ebp + 0x47c]
mov dword [esp + 0x10], esi
cmp cx, word [ebp + 0x478]
jae 0x1015194a
mov ecx, dword [esp + 0x20]
cmp eax, edi
jge 0x1015194a
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x478]
inc eax
cmp eax, edx
jl 0x10151934
movzx ecx, word [ebp + 0x476]
mov edx, 0x10000
test cx, cx
je 0x1015195e
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x10151983
cmp eax, edi
jge 0x10151a2b
movzx si, byte [ecx + esi]
mov ebx, dword [esp + 0x20]
mov word [ebx + eax*2], si
mov esi, dword [esp + 0x10]
inc ecx
inc eax
cmp ecx, edx
jl 0x10151964
cmp eax, edi
jge 0x10151a2b
mov ecx, dword [esp + 0x20]
nop
movzx edx, word [ebp + 0x476]
movzx dx, byte [edx + esi - 1]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x10151990
jmp 0x10151a2b
cmp cx, word [ebp + 0x478]
jae 0x101519ce
mov ecx, dword [esp + 0x20]
cmp eax, edi
jge 0x101519ce
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x478]
inc eax
cmp eax, edx
jl 0x101519b8
movzx ecx, word [ebp + 0x476]
mov edx, 0x10000
test cx, cx
je 0x101519e2
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x10151a08
mov esi, dword [esp + 0x20]
lea esp, [esp]
cmp eax, edi
jge 0x10151a2b
mov ebx, dword [ebp + 0x47c]
mov bx, word [ebx + ecx*2]
mov word [esi + eax*2], bx
inc ecx
inc eax
cmp ecx, edx
jl 0x101519f0
cmp eax, edi
jge 0x10151a2b
mov ecx, dword [esp + 0x20]
movzx edx, word [ebp + 0x476]
mov esi, dword [ebp + 0x47c]
mov dx, word [esi + edx*2 - 2]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x10151a10
xor eax, eax
xor ecx, ecx
cmp word [ebp + 0x48c], 8
jne 0x10151acb
mov esi, dword [ebp + 0x48e]
mov dword [esp + 0x10], esi
cmp cx, word [ebp + 0x48a]
jae 0x10151a6a
mov ecx, dword [esp + 0x1c]
cmp eax, edi
jge 0x10151a6a
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x48a]
inc eax
cmp eax, edx
jl 0x10151a54
movzx ecx, word [ebp + 0x488]
mov edx, 0x10000
test cx, cx
je 0x10151a7e
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x10151aa3
cmp eax, edi
jge 0x10151b4b
movzx si, byte [ecx + esi]
mov ebx, dword [esp + 0x1c]
mov word [ebx + eax*2], si
mov esi, dword [esp + 0x10]
inc ecx
inc eax
cmp ecx, edx
jl 0x10151a84
cmp eax, edi
jge 0x10151b4b
mov ecx, dword [esp + 0x1c]
nop
movzx edx, word [ebp + 0x488]
movzx dx, byte [edx + esi - 1]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x10151ab0
jmp 0x10151b4b
cmp cx, word [ebp + 0x48a]
jae 0x10151aee
mov ecx, dword [esp + 0x1c]
cmp eax, edi
jge 0x10151aee
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x48a]
inc eax
cmp eax, edx
jl 0x10151ad8
movzx ecx, word [ebp + 0x488]
mov edx, 0x10000
test cx, cx
je 0x10151b02
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x10151b28
mov esi, dword [esp + 0x1c]
lea esp, [esp]
cmp eax, edi
jge 0x10151b4b
mov ebx, dword [ebp + 0x48e]
mov bx, word [ebx + ecx*2]
mov word [esi + eax*2], bx
inc ecx
inc eax
cmp ecx, edx
jl 0x10151b10
cmp eax, edi
jge 0x10151b4b
mov ecx, dword [esp + 0x1c]
movzx edx, word [ebp + 0x488]
mov esi, dword [ebp + 0x48e]
mov dx, word [esi + edx*2 - 2]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x10151b30
mov ebx, dword [esp + 0x20]
movzx eax, word [ebx]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
movzx esi, word [edx]
mov dword [esp + 0x48], eax
movzx eax, word [ecx]
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], eax
test edi, edi
jle 0x10151bc9
sub edx, ebx
sub ecx, ebx
mov eax, ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x58], edi
mov edi, edi
movzx ecx, word [edx + eax]
cmp si, cx
jae 0x10151b90
movzx ecx, cx
mov dword [esp + 0x50], ecx
movzx ecx, word [eax]
cmp word [esp + 0x48], cx
jae 0x10151ba1
movzx ecx, cx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x74]
movzx ecx, word [ecx + eax]
cmp word [esp + 0x10], cx
jae 0x10151bb7
movzx ecx, cx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x50]
add eax, 2
sub dword [esp + 0x58], 1
jne 0x10151b80
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
cmp si, ax
jbe 0x10151bd7
movzx eax, si
jmp 0x10151bda
movzx eax, ax
mov ecx, dword [esp + 0x10]
cmp ax, cx
ja 0x10151be6
movzx eax, cx
mov ecx, 0xff
cmp ax, cx
jbe 0x10151cd5
movzx eax, ax
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fdivr qword [0x102cf270]
test edi, edi
jle 0x10151cd3
mov esi, dword [esp + 0x1c]
fld qword [0x102ce5c0]
sub edx, ebx
mov ecx, ebx
sub esi, ebx
movzx eax, word [ecx + edx]
fnstcw word [esp + 0x10]
mov dword [esp + 0x74], eax
movzx eax, word [esp + 0x10]
fild dword [esp + 0x74]
or eax, 0xc00
mov dword [esp + 0x74], eax
fmul st(2)
add ecx, 2
fadd st(1)
fldcw word [esp + 0x74]
fistp dword [esp + 0x74]
movzx eax, word [esp + 0x74]
mov word [ecx + edx - 2], ax
movzx eax, word [ecx - 2]
fldcw word [esp + 0x10]
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fnstcw word [esp + 0x10]
fmul st(2)
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x74], eax
fadd st(1)
fldcw word [esp + 0x74]
fistp dword [esp + 0x74]
movzx eax, word [esp + 0x74]
mov word [ecx - 2], ax
movzx eax, word [ecx + esi - 2]
fldcw word [esp + 0x10]
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fnstcw word [esp + 0x10]
fmul st(2)
movzx eax, word [esp + 0x10]
or eax, 0xc00
sub edi, 1
mov dword [esp + 0x74], eax
fadd st(1)
fldcw word [esp + 0x74]
fistp dword [esp + 0x74]
movzx eax, word [esp + 0x74]
mov word [ecx + esi - 2], ax
fldcw word [esp + 0x10]
jne 0x10151c1d
fstp st(1)
fstp st(0)
mov edi, dword [esp + 0xa4]
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [ecx], 0x28
mov edx, dword [edi]
mov dword [edx + 4], eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov eax, dword [edi]
mov ecx, 1
mov word [eax + 0xc], cx
mov eax, dword [edi]
xor ebx, ebx
mov ecx, 0x18
mov word [eax + 0xe], cx
mov eax, dword [edi]
mov dword [eax + 0x10], ebx
mov ecx, dword [edi]
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0x14], eax
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov eax, dword [edi]
mov dword [eax + 0x1c], ebx
mov ecx, dword [edi]
mov dword [ecx + 0x24], ebx
mov eax, dword [edi]
mov dword [eax + 0x20], ebx
xor eax, eax
mov ecx, dword [edi]
mov byte [ecx + eax*4 + 0x2a], al
mov ecx, dword [edi]
mov byte [ecx + eax*4 + 0x29], al
mov ecx, dword [edi]
mov byte [ecx + eax*4 + 0x28], al
mov ecx, dword [edi]
mov byte [ecx + eax*4 + 0x2b], 0
inc eax
cmp eax, 0x100
jl 0x10151d32
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0xbc], ebx
je 0x10151d73
mov esi, dword [esp + 0xa0]
lea eax, [edx - 1]
imul eax, ecx
add eax, dword [esi]
neg ecx
jmp 0x10151d7c
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x10], eax
jle 0x1015211b
cmp dword [esp + 0x34], 0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x24]
je 0x10151db4
mov edi, dword [ecx + eax*4 + 4]
sub edi, dword [ecx + eax*4]
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x8c]
mov esi, edi
imul esi, dword [esp + 0x5c]
push esi
push ebx
push edx
call fcn.100db5df
add esp, 0xc
cmp eax, esi
jne 0x1015215e
cmp dword [esp + 0xc4], 0
je 0x10152081
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x54]
lea esi, [ebp*4]
push esi
push 0
push eax
mov dword [esp + 0x5c], ebx
call fcn.100dc309
mov ecx, dword [esp + 0x44]
push esi
push 0
push ecx
call fcn.100dc309
mov edx, dword [esp + 0x54]
push esi
push 0
push edx
call fcn.100dc309
add esp, 0x24
cmp dword [esp + 0x34], 0
je 0x10151e37
mov ecx, dword [esp + 0x60]
lea eax, [ebp + ebp]
push eax
push 0
push ecx
call fcn.100dc309
add esp, 0xc
test edi, edi
jle 0x10151f9c
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x70], 0
je 0x10151e73
mov esi, dword [esp + 0x44]
xor eax, eax
test esi, esi
jle 0x10151e73
jmp 0x10151e60
mov cl, byte [ebx + eax*2]
mov dl, byte [ebx + eax*2 + 1]
mov byte [ebx + eax*2], dl
mov byte [ebx + eax*2 + 1], cl
inc eax
cmp eax, esi
jl 0x10151e60
cmp dword [esp + 0x34], 0
je 0x10151f0d
cmp dword [esp + 0x14], 0
mov dword [esp + 0x58], 0
jle 0x10151f89
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
sub esi, eax
sub edi, eax
sub ebp, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
test ecx, ecx
jle 0x10151efb
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x58]
movzx ecx, word [ebx + ecx*2]
mov ebx, dword [esp + 0x2c]
movzx ebx, word [ebx + ecx*2]
add dword [esi + eax], ebx
mov ebx, dword [esp + 0x20]
movzx ebx, word [ebx + ecx*2]
add dword [edi + eax], ebx
mov ebx, dword [esp + 0x1c]
movzx ecx, word [ebx + ecx*2]
add dword [eax + ebp], ecx
inc dword [esp + 0x58]
inc word [edx]
sub dword [esp + 0x64], 1
mov ebx, dword [esp + 0x50]
jne 0x10151ec0
add eax, 4
add edx, 2
sub dword [esp + 0x68], 1
jne 0x10151eb3
jmp 0x10151f89
cmp dword [esp + 0x14], 0
jle 0x10151f89
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
sub edx, eax
mov dword [esp + 0x68], ebx
sub esi, eax
mov dword [esp + 0x64], ecx
mov ebp, dword [esp + 0x24]
mov edi, ebx
lea ebx, [ebx]
movzx ecx, word [edi]
mov ebx, dword [esp + 0x2c]
movzx ebx, word [ebx + ecx*2]
add dword [edx + eax], ebx
mov ebx, dword [esp + 0x20]
movzx ebx, word [ebx + ecx*2]
add dword [eax], ebx
mov ebx, dword [esp + 0x1c]
movzx ecx, word [ebx + ecx*2]
add dword [esi + eax], ecx
add edi, 2
sub ebp, 1
jne 0x10151f40
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x68]
add ecx, ecx
add ebx, ecx
add eax, 4
sub dword [esp + 0x64], 1
mov dword [esp + 0x68], ebx
jne 0x10151f34
mov ebx, dword [esp + 0x50]
add ebx, dword [esp + 0x5c]
sub dword [esp + 0x6c], 1
mov dword [esp + 0x50], ebx
jne 0x10151e47
cmp dword [esp + 0x34], 0
je 0x1015201b
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x101520f0
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
sub ebp, edi
sub eax, edi
mov dword [esp + 0x6c], eax
jmp 0x10151fd0
mov edx, dword [esp + 0x60]
movzx esi, word [edx + ebx*2]
test esi, esi
je 0x10152000
mov eax, dword [edi + ebp]
xor edx, edx
div esi
xor edx, edx
inc ecx
inc ecx
mov byte [ecx - 2], al
mov eax, dword [edi]
div esi
xor edx, edx
mov byte [ecx - 1], al
mov eax, dword [esp + 0x6c]
mov eax, dword [edi + eax]
div esi
mov byte [ecx], al
jmp 0x1015200b
mov byte [ecx], 0
inc ecx
mov byte [ecx], 0
inc ecx
mov byte [ecx], 0
inc ebx
inc ecx
add edi, 4
cmp ebx, dword [esp + 0x14]
jl 0x10151fd0
jmp 0x101520f0
cmp dword [esp + 0x14], 0
jle 0x101520f0
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x80]
sub ebx, esi
sub ebp, esi
mov dword [esp + 0x6c], edx
lea esp, [esp]
mov eax, dword [esi + ebx]
xor edx, edx
div edi
xor edx, edx
inc ecx
inc ecx
inc ecx
add esi, 4
mov byte [ecx - 3], al
mov eax, dword [esi - 4]
div edi
xor edx, edx
mov byte [ecx - 2], al
mov eax, dword [esi + ebp - 4]
div edi
sub dword [esp + 0x6c], 1
mov byte [ecx - 1], al
jne 0x10152050
jmp 0x101520f0
cmp dword [esp + 0x70], 0
je 0x101520a5
xor eax, eax
cmp dword [esp + 0x44], eax
jle 0x101520a5
mov cl, byte [ebx + eax*2]
mov dl, byte [ebx + eax*2 + 1]
mov byte [ebx + eax*2], dl
mov byte [ebx + eax*2 + 1], cl
inc eax
cmp eax, dword [esp + 0x44]
jl 0x10152090
cmp dword [esp + 0x34], 0
jne 0x101520f0
test ebp, ebp
jle 0x101520f0
mov ecx, dword [esp + 0x48]
inc ecx
mov esi, ebp
mov ebp, dword [esp + 0x2c]
add edi, edi
mov eax, ebx
nop
movzx edx, word [eax]
mov ebx, dword [esp + 0x1c]
movzx edx, byte [ebx + edx*2]
mov ebx, dword [esp + 0x20]
mov byte [ecx - 1], dl
movzx edx, word [eax]
movzx edx, byte [ebx + edx*2]
mov byte [ecx], dl
movzx edx, word [eax]
movzx edx, byte [ebp + edx*2]
mov byte [ecx + 1], dl
add eax, edi
add ecx, 3
sub esi, 1
jne 0x101520c0
mov eax, dword [esp + 0x74]
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jl 0x10151d92
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0xa4]
xor ebx, ebx
mov edx, dword [esp + 0x18]
push edx
call fcn.100db8dc
add esp, 4
cmp dword [esp + 0xb0], ebx
je 0x10152344
mov esi, dword [esp + 0xb4]
cmp esi, ebx
je 0x10152344
mov ax, word [esp + 0xa8]
cmp ax, bx
jne 0x10152178
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x78
ret
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100db8dc
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 0xca
pop ebp
add esp, 0x78
ret
mov ecx, dword [edi]
movzx edi, ax
mov eax, dword [ecx + 4]
cdq
idiv edi
mov ecx, eax
cmp ecx, 1
jge 0x1015218f
mov ecx, 1
mov eax, dword [esp + 0x28]
lea edx, [ecx + ecx*2]
mov dword [esp + 0x80], edx
cdq
idiv ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov edx, dword [esp + 0x30]
imul edx, ecx
cmp dword [esp + 0xc8], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x14], eax
je 0x101521cb
lea eax, [eax + eax*2 + 3]
and eax, 0xfffffffc
jmp 0x101521ce
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx]
push 0x42c
push edx
mov dword [esp + 0x38], eax
call fcn.100de77b
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x1015163e
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0xb8]
imul edi, ebx
mov edx, dword [ecx]
lea eax, [edi + 0x80]
push eax
push edx
call fcn.100de77b
mov ecx, dword [esp + 0xb8]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x1015163e
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [edx], 0x28
mov eax, dword [esi]
mov dword [eax + 4], ecx
mov edx, dword [esi]
mov dword [edx + 8], ebx
mov eax, dword [esi]
mov ecx, 1
mov word [eax + 0xc], cx
mov edx, dword [esi]
xor ecx, ecx
mov eax, 0x18
mov word [edx + 0xe], ax
mov edx, dword [esi]
mov dword [edx + 0x10], ecx
mov eax, dword [esi]
mov dword [eax + 0x14], edi
mov edx, dword [esi]
mov dword [edx + 0x18], ecx
mov eax, dword [esi]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi]
mov dword [edx + 0x24], ecx
mov eax, dword [esi]
mov dword [eax + 0x20], ecx
xor eax, eax
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x2a], al
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x29], al
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x28], al
mov edx, dword [esi]
mov byte [edx + eax*4 + 0x2b], cl
inc eax
cmp eax, 0x100
jl 0x10152272
cmp ebx, ecx
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xa0]
mov edi, dword [eax]
mov edx, dword [edx]
jle 0x101522f1
inc edx
inc edi
mov dword [esp + 0x74], ebx
mov edi, edi
cmp dword [esp + 0x14], 0
jle 0x101522e2
mov esi, dword [esp + 0x14]
mov ecx, edi
mov eax, edx
nop
movzx ebx, byte [eax - 1]
mov byte [ecx - 1], bl
movzx ebx, byte [eax]
mov byte [ecx], bl
movzx ebx, byte [eax + 1]
add eax, dword [esp + 0x80]
mov byte [ecx + 1], bl
add ecx, 3
sub esi, 1
jne 0x101522c0
add edi, dword [esp + 0x30]
add edx, dword [esp + 0x7c]
sub dword [esp + 0x74], 1
jne 0x101522b0
fld qword [0x102cf220]
xor eax, eax
fstp qword [ebp + 0x40c]
mov ecx, 0xff
fld qword [0x102cf218]
mov dword [ebp + 0x404], eax
fstp qword [ebp + 0x414]
mov dword [ebp + 0x408], ecx
mov dword [ebp + 0x42c], eax
mov dword [ebp + 0x430], ecx
add ebp, 0x204
mov edi, edi
mov ecx, eax
shl ecx, 4
mov word [ebp], cx
inc eax
add ebp, 2
cmp eax, 0x100
jl 0x10152330
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x78
ret
mov edx, dword [esp + 0x18]
push edx
jmp 0x10151636
pop esi
pop ebx
pop edi
mov eax, 2
pop ebp
add esp, 0x78
ret
mov eax, 2
pop ebp
add esp, 0x78
ret
mov eax, 0xc
pop ebp
add esp, 0x78
ret