Function at 0x10050ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [esp + 0x28]
mov dword [esp + 0x4c], edx
mov edi, ecx
push 0
push eax
mov edx, 0x1b
mov dword [esp + 0x1c], edi
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x30], 0
call fcn.100594a0
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
test esi, esi
jne 0x10051321
mov eax, dword [edi + 0x118]
mov ebx, dword [esp + 0x28]
cdq
push edx
push eax
push 1
push ebx
call sym.SQLite.Interop.dll_sqlite3_bind_int64
mov eax, dword [edi + 0xfc]
cdq
push edx
push eax
push 2
push ebx
call sym.SQLite.Interop.dll_sqlite3_bind_int64
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
add esp, 0x20
mov dword [esp + 0x34], eax
push ebx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x10050fb4
push 0
push ebx
call sym.SQLite.Interop.dll_sqlite3_column_int
mov ebx, eax
mov eax, dword [esp + 0x1c]
xor edi, edi
add esp, 8
cmp dword [eax + 0xfc], edi
jle 0x10050fac
lea ecx, [esp + 0x30]
push ecx
push edi
mov edx, ebx
mov ecx, eax
call fcn.10051340
xor dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x40], edx
inc edi
add esp, 8
cmp edi, dword [eax + 0xfc]
jl 0x10050f81
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
test esi, esi
je 0x10050f58
push ebx
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
test esi, esi
jne 0x100512fa
mov esi, eax
test eax, eax
jne 0x100512fa
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x24]
push dword [esi + 0xdc]
mov eax, dword [eax]
push str.SELECT__s
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], 0
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov edi, eax
add esp, 8
test edi, edi
jne 0x10051019
push dword [esp + 0xc]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
lea esi, [eax + 7]
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
jmp 0x10051302
mov ecx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, edi
call fcn.1008e180
add esp, 0x14
mov esi, eax
push edi
call sym.SQLite.Interop.dll_sqlite3_free
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
add esp, 4
test esi, esi
jne 0x100512ec
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
lea ecx, [ecx]
push dword [esp + 0xc]
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100512e4
mov edi, dword [esp + 0xc]
test edi, edi
je 0x100510b5
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10051090
push eax
call dword [0x1012731c]
add esp, 4
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x100510a2
xor eax, eax
cmp ax, word [edi + 0x8c]
jb 0x100510ba
mov ecx, dword [edi]
mov edx, 0x19
mov dword [ecx + 0x38], 0x19
call fcn.100e9bf0
mov ecx, 0x10109610
call fcn.100cb090
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
test edi, edi
je 0x10051100
mov ecx, dword [edi]
mov edx, dword [edi + 0x28]
cmp byte [ecx + 0x49], 0
jne 0x100510e5
cmp edx, 0xc0a
je 0x100510e5
mov eax, dword [ecx + 0x3c]
and eax, edx
jmp 0x100510ea
call fcn.100ec420
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10051100
push eax
call dword [0x10127324]
add esp, 4
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x20], 0
je 0x10051123
mov eax, dword [ebx + 0x18]
inc eax
push eax
push dword [esp + 0x10]
call sym.SQLite.Interop.dll_sqlite3_column_int
add esp, 8
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea esp, [esp]
cmp ecx, dword [ebx + 0x18]
jge 0x10051060
mov eax, dword [ebx + 0x20]
cmp byte [ecx + eax], 0
jne 0x100512d7
lea esi, [ecx + 1]
push esi
push dword [esp + 0x10]
call sym.SQLite.Interop.dll_sqlite3_column_text
push esi
push dword [esp + 0x18]
mov edi, eax
call sym.SQLite.Interop.dll_sqlite3_column_bytes
mov ecx, dword [ebx + 0x24]
lea edx, [esp + 0x20]
mov ebx, dword [ecx]
push edx
push eax
mov dword [esp + 0x28], 0
mov eax, dword [ebx + 0xc]
push edi
push ecx
mov dword [esp + 0x50], ecx
call eax
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x100511bf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
cmp dword [ebx], 1
jl 0x100511bf
push dword [esp + 0x20]
mov eax, dword [ebx + 0x18]
push dword [esp + 0x14]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x100511bf
push dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
call eax
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x100511c3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
test esi, esi
jne 0x100512b2
nop
mov ebx, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [ebx + 0x14]
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x48], 0
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x100512b6
push dword [esp + 0x30]
mov edx, dword [esp + 0x30]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push eax
push dword [esp + 0x34]
call fcn.10051520
xor dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
xor dword [esp + 0x30], edx
mov ebx, dword [eax + 0xfc]
mov ecx, dword [esp + 0x3c]
lea edi, [esi + 1]
add esp, 0x18
cmp ebx, edi
jle 0x100511d0
mov esi, dword [eax + 0x100]
add esi, 0x18
nop
mov edx, dword [esi]
cmp edx, dword [esp + 0x2c]
jg 0x100512a1
push dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
push dword [esp + 0x2c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push edi
push dword [esp + 0x34]
call fcn.10051520
xor dword [esp + 0x34], eax
add esp, 0x18
xor dword [esp + 0x18], edx
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x10051270
mov ecx, dword [esp + 0x24]
jmp 0x100511d0
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100512c7
push eax
mov eax, dword [ebx + 0x10]
call eax
add esp, 4
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp esi, 0x65
cmove esi, eax
inc ecx
mov dword [esp + 0x28], ecx
test esi, esi
je 0x10051130
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push dword [esp + 0xc]
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
jmp 0x10051302
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
cmp dword [esp + 0x34], ebx
jne 0x1005130e
cmp dword [esp + 0x38], edi
je 0x10051321
mov eax, dword [esp + 0x4c]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x4c]
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret