Function at 0x100ac4f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x78
push ebp
mov ebp, dword [esp + 0x90]
cmp dword [ebp + 0x46a], 0
je 0x100ad4ef
cmp dword [ebp + 0x47c], 0
je 0x100ad4ef
cmp dword [ebp + 0x48e], 0
je 0x100ad4ef
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 0x100ad4e5
cmp dword [ebp + 0x4e0], 0x10
jne 0x100ad4e5
cmp dword [esp + 0x94], 0
je 0x100ad4e5
cmp dword [esp + 0x98], 0
je 0x100ad4e5
cmp dword [esp + 0xb0], 0
mov eax, dword [ebp + 0x4ec]
push edi
lea edi, [eax + eax]
mov dword [esp + 0x54], edi
jne 0x100ac591
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 0x100ad4d8
test ebx, ebx
je 0x100ad4d8
mov ax, word [esp + 0x94]
mov dword [esp + 0x34], 0
test ax, ax
jbe 0x100ac63b
movzx ecx, ax
cmp ecx, ebx
jge 0x100ac63b
mov ax, word [esp + 0x98]
test ax, ax
jbe 0x100ac63b
movzx eax, ax
cmp eax, esi
jge 0x100ac63b
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 0x100ac628
fstp st(0)
call fcn.1012b4f0
mov ecx, eax
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x100ac6bc
fstp st(1)
call fcn.1012b4f0
mov ecx, eax
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x100ac6bc
mov ecx, dword [esp + 0x90]
test ecx, ecx
jbe 0x100ac687
mov eax, esi
imul eax, edi
xor edx, edx
div ecx
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
test eax, eax
jge 0x100ac667
fadd qword [0x101470e8]
call fcn.10037bb0
call fcn.1012b4f0
mov ecx, eax
cmp ecx, 1
mov dword [esp + 0x24], ecx
jge 0x100ac68f
mov ecx, 1
mov dword [esp + 0x24], ecx
jmp 0x100ac691
mov ecx, edx
mov dword [esp + 0x24], ecx
jmp 0x100ac691
jne 0x100ac69c
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 0x100ac6d3
lea eax, [ebx + ebx*2 + 3]
and eax, 0xfffffffc
mov dword [esp + 0x30], eax
jmp 0x100ac6da
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 0x100ac700
push eax
call fcn.10009b30
movzx eax, ax
add esp, 4
test ax, ax
jne 0x100ac7c3
lea eax, [esp + 0x18]
push eax
call fcn.10009b30
movzx eax, ax
add esp, 4
test ax, ax
jne 0x100ac7c3
mov ecx, dword [esp + 0x18]
push esi
push ecx
call fcn.10009ed0
add esp, 8
mov dword [esp + 0x54], eax
test eax, eax
je 0x100ad4ce
cmp dword [esp + 0xc4], 0
je 0x100ac7d6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, esi
add esi, esi
push esi
push eax
call fcn.10009ed0
mov ecx, dword [esp + 0x20]
mov edi, eax
push esi
push ecx
mov dword [esp + 0x50], edi
call fcn.10009ed0
mov edx, dword [esp + 0x28]
mov ebx, eax
push esi
push edx
mov dword [esp + 0x50], ebx
call fcn.10009ed0
add esp, 0x18
mov dword [esp + 0x3c], eax
test edi, edi
je 0x100ac7cb
test ebx, ebx
je 0x100ac7cb
test eax, eax
je 0x100ac7cb
cmp dword [esp + 0x34], 0
je 0x100ac89a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push edx
call fcn.10009ed0
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
jne 0x100ac7d2
mov eax, dword [esp + 0x18]
push eax
call fcn.10009d90
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 0x100ac7b6
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x34], 0
je 0x100ac89a
mov eax, dword [esp + 0x18]
lea edx, [ebx*4 + 4]
push edx
push eax
call fcn.10009ed0
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.10009ed0
add esp, 0x10
mov dword [esp + 0x4c], eax
test edi, edi
je 0x100ad4ce
test eax, eax
je 0x100ad4ce
xor esi, esi
mov dword [esp + 0x10], esi
test ebx, ebx
jle 0x100ac853
fld qword [esp + 0x80]
fild dword [esp + 0x10]
fmul st(1)
call fcn.1012b4f0
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
mov dword [esp + 0x10], esi
jl 0x100ac83a
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 0x100ac88b
fld qword [esp + 0x74]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
fild dword [esp + 0x10]
fmul st(1)
call fcn.1012b4f0
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
mov dword [esp + 0x10], esi
jl 0x100ac872
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 0x100ac8bd
cmp dword [edi], 0
jne 0x100ac8e0
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx]
lea eax, [esi + 0x4ac]
push eax
push edx
call fcn.10009ed0
add esp, 8
mov dword [edi], eax
test eax, eax
je 0x100ac7b1
mov ecx, dword [edi]
mov edx, dword [esp + 0xa4]
lea eax, [ecx + esi + 0x80]
mov dword [edx], eax
test eax, eax
je 0x100ac7b1
cmp dword [ebp + 0x4e4], 0
mov edi, 1
jl 0x100ac917
mov eax, dword [ebp + 0x4e4]
inc eax
nop
add edi, edi
sub eax, 1
jne 0x100ac910
mov ecx, dword [esp + 0x18]
lea esi, [edi + edi]
push esi
push ecx
call fcn.10009ed0
mov edx, dword [esp + 0x20]
mov ebx, eax
push esi
push edx
mov dword [esp + 0x3c], ebx
call fcn.10009ed0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.10009ed0
add esp, 0x18
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100ad4ce
cmp dword [esp + 0x20], 0
je 0x100ad4ce
test eax, eax
je 0x100ad4ce
xor eax, eax
xor ecx, ecx
cmp word [ebp + 0x468], 8
jne 0x100aca0b
mov esi, dword [ebp + 0x46a]
mov dword [esp + 0x10], esi
cmp cx, word [ebp + 0x466]
jae 0x100ac9a6
lea esp, [esp]
cmp eax, edi
jge 0x100ac9a6
xor edx, edx
mov word [ebx + eax*2], dx
movzx ecx, word [ebp + 0x466]
inc eax
cmp eax, ecx
jl 0x100ac990
movzx ecx, word [ebp + 0x464]
mov edx, 0x10000
test cx, cx
je 0x100ac9ba
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x100ac9df
cmp eax, edi
jge 0x100aca8b
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 0x100ac9c0
cmp eax, edi
jge 0x100aca8b
mov ecx, dword [esp + 0x2c]
jmp 0x100ac9f0
movzx edx, word [ebp + 0x464]
movzx dx, byte [edx + esi - 1]
mov word [ecx + eax*2], dx
inc eax
cmp eax, edi
jl 0x100ac9f0
jmp 0x100aca8b
cmp cx, word [ebp + 0x466]
jae 0x100aca2a
cmp eax, edi
jge 0x100aca2a
xor edx, edx
mov word [ebx + eax*2], dx
movzx ecx, word [ebp + 0x466]
inc eax
cmp eax, ecx
jl 0x100aca14
movzx ecx, word [ebp + 0x464]
mov edx, 0x10000
test cx, cx
je 0x100aca3e
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x100aca60
mov esi, dword [esp + 0x2c]
cmp eax, edi
jge 0x100aca8b
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 0x100aca48
cmp eax, edi
jge 0x100aca8b
mov ecx, dword [esp + 0x2c]
jmp 0x100aca70
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 0x100aca70
xor eax, eax
xor ecx, ecx
cmp word [ebp + 0x47a], 8
jne 0x100acb2b
mov esi, dword [ebp + 0x47c]
mov dword [esp + 0x10], esi
cmp cx, word [ebp + 0x478]
jae 0x100acaca
mov ecx, dword [esp + 0x20]
cmp eax, edi
jge 0x100acaca
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x478]
inc eax
cmp eax, edx
jl 0x100acab4
movzx ecx, word [ebp + 0x476]
mov edx, 0x10000
test cx, cx
je 0x100acade
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x100acb03
cmp eax, edi
jge 0x100acbab
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 0x100acae4
cmp eax, edi
jge 0x100acbab
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 0x100acb10
jmp 0x100acbab
cmp cx, word [ebp + 0x478]
jae 0x100acb4e
mov ecx, dword [esp + 0x20]
cmp eax, edi
jge 0x100acb4e
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x478]
inc eax
cmp eax, edx
jl 0x100acb38
movzx ecx, word [ebp + 0x476]
mov edx, 0x10000
test cx, cx
je 0x100acb62
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x100acb88
mov esi, dword [esp + 0x20]
lea esp, [esp]
cmp eax, edi
jge 0x100acbab
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 0x100acb70
cmp eax, edi
jge 0x100acbab
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 0x100acb90
xor eax, eax
xor ecx, ecx
cmp word [ebp + 0x48c], 8
jne 0x100acc4b
mov esi, dword [ebp + 0x48e]
mov dword [esp + 0x10], esi
cmp cx, word [ebp + 0x48a]
jae 0x100acbea
mov ecx, dword [esp + 0x1c]
cmp eax, edi
jge 0x100acbea
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x48a]
inc eax
cmp eax, edx
jl 0x100acbd4
movzx ecx, word [ebp + 0x488]
mov edx, 0x10000
test cx, cx
je 0x100acbfe
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x100acc23
cmp eax, edi
jge 0x100acccb
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 0x100acc04
cmp eax, edi
jge 0x100acccb
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 0x100acc30
jmp 0x100acccb
cmp cx, word [ebp + 0x48a]
jae 0x100acc6e
mov ecx, dword [esp + 0x1c]
cmp eax, edi
jge 0x100acc6e
xor edx, edx
mov word [ecx + eax*2], dx
movzx edx, word [ebp + 0x48a]
inc eax
cmp eax, edx
jl 0x100acc58
movzx ecx, word [ebp + 0x488]
mov edx, 0x10000
test cx, cx
je 0x100acc82
movzx edx, cx
xor ecx, ecx
test edx, edx
jle 0x100acca8
mov esi, dword [esp + 0x1c]
lea esp, [esp]
cmp eax, edi
jge 0x100acccb
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 0x100acc90
cmp eax, edi
jge 0x100acccb
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 0x100accb0
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 0x100acd49
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 0x100acd10
movzx ecx, cx
mov dword [esp + 0x50], ecx
movzx ecx, word [eax]
cmp word [esp + 0x48], cx
jae 0x100acd21
movzx ecx, cx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x74]
movzx ecx, word [ecx + eax]
cmp word [esp + 0x10], cx
jae 0x100acd37
movzx ecx, cx
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x50]
add eax, 2
sub dword [esp + 0x58], 1
jne 0x100acd00
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
cmp si, ax
jbe 0x100acd57
movzx eax, si
jmp 0x100acd5a
movzx eax, ax
mov ecx, dword [esp + 0x10]
cmp ax, cx
ja 0x100acd66
movzx eax, cx
mov ecx, 0xff
cmp ax, cx
jbe 0x100ace55
movzx eax, ax
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fdivr qword [0x101470f0]
test edi, edi
jle 0x100ace53
mov esi, dword [esp + 0x1c]
fld qword [0x10147038]
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 0x100acd9d
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 0x100aceb2
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0xbc], ebx
je 0x100acef3
mov esi, dword [esp + 0xa0]
lea eax, [edx - 1]
imul eax, ecx
add eax, dword [esi]
neg ecx
jmp 0x100acefc
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 0x100ad29b
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 0x100acf34
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.1000b880
add esp, 0xc
cmp eax, esi
jne 0x100ad2de
cmp dword [esp + 0xc4], 0
je 0x100ad201
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.1002a420
mov ecx, dword [esp + 0x44]
push esi
push 0
push ecx
call fcn.1002a420
mov edx, dword [esp + 0x54]
push esi
push 0
push edx
call fcn.1002a420
add esp, 0x24
cmp dword [esp + 0x34], 0
je 0x100acfb7
mov ecx, dword [esp + 0x60]
lea eax, [ebp + ebp]
push eax
push 0
push ecx
call fcn.1002a420
add esp, 0xc
test edi, edi
jle 0x100ad11c
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x70], 0
je 0x100acff3
mov esi, dword [esp + 0x44]
xor eax, eax
test esi, esi
jle 0x100acff3
jmp 0x100acfe0
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 0x100acfe0
cmp dword [esp + 0x34], 0
je 0x100ad08d
cmp dword [esp + 0x14], 0
mov dword [esp + 0x58], 0
jle 0x100ad109
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 0x100ad07b
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 0x100ad040
add eax, 4
add edx, 2
sub dword [esp + 0x68], 1
jne 0x100ad033
jmp 0x100ad109
cmp dword [esp + 0x14], 0
jle 0x100ad109
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 0x100ad0c0
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 0x100ad0b4
mov ebx, dword [esp + 0x50]
add ebx, dword [esp + 0x5c]
sub dword [esp + 0x6c], 1
mov dword [esp + 0x50], ebx
jne 0x100acfc7
cmp dword [esp + 0x34], 0
je 0x100ad19b
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x100ad270
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 0x100ad150
mov edx, dword [esp + 0x60]
movzx esi, word [edx + ebx*2]
test esi, esi
je 0x100ad180
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 0x100ad18b
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 0x100ad150
jmp 0x100ad270
cmp dword [esp + 0x14], 0
jle 0x100ad270
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 0x100ad1d0
jmp 0x100ad270
cmp dword [esp + 0x70], 0
je 0x100ad225
xor eax, eax
cmp dword [esp + 0x44], eax
jle 0x100ad225
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 0x100ad210
cmp dword [esp + 0x34], 0
jne 0x100ad270
test ebp, ebp
jle 0x100ad270
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 0x100ad240
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 0x100acf12
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0xa4]
xor ebx, ebx
mov edx, dword [esp + 0x18]
push edx
call fcn.10009d90
add esp, 4
cmp dword [esp + 0xb0], ebx
je 0x100ad4c4
mov esi, dword [esp + 0xb4]
cmp esi, ebx
je 0x100ad4c4
mov ax, word [esp + 0xa8]
cmp ax, bx
jne 0x100ad2f8
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x78
ret
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10009d90
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 0x100ad30f
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 0x100ad34b
lea eax, [eax + eax*2 + 3]
and eax, 0xfffffffc
jmp 0x100ad34e
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.10009ed0
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x100ac7be
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.10009ed0
mov ecx, dword [esp + 0xb8]
add esp, 8
mov dword [ecx], eax
test eax, eax
je 0x100ac7be
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 0x100ad3f2
cmp ebx, ecx
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xa0]
mov edi, dword [eax]
mov edx, dword [edx]
jle 0x100ad471
inc edx
inc edi
mov dword [esp + 0x74], ebx
mov edi, edi
cmp dword [esp + 0x14], 0
jle 0x100ad462
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 0x100ad440
add edi, dword [esp + 0x30]
add edx, dword [esp + 0x7c]
sub dword [esp + 0x74], 1
jne 0x100ad430
fld qword [0x101470a0]
xor eax, eax
fstp qword [ebp + 0x40c]
mov ecx, 0xff
fld qword [0x10147098]
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 0x100ad4b0
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x78
ret
mov edx, dword [esp + 0x18]
push edx
jmp 0x100ac7b6
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