Function at 0x100452c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push edi
push 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x1b
push esi
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x4c], xmm0
call fcn.1004cae0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x10045be7
mov eax, dword [esi + 0x118]
push ebx
mov ebx, dword [ebp - 0x20]
cdq
push edx
push eax
push 1
push ebx
call sym.e_sqlite3.dll_sqlite3_bind_int64
mov eax, dword [esi + 0x100]
cdq
push edx
push eax
push 2
push ebx
call sym.e_sqlite3.dll_sqlite3_bind_int64
mov ecx, dword [ebp - 0x40]
add esp, 0x20
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
push ebx
call sym.e_sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1004546c
test ebx, ebx
je 0x1004538b
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10045365
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x10045377
xor ecx, ecx
cmp cx, word [ebx + 0x90]
jb 0x10045390
mov eax, dword [ebx]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
movzx ecx, word [eax + 0x10]
test cl, 0x24
je 0x100453a6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x40], eax
jmp 0x100453eb
test cl, 8
je 0x100453c4
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10031ff0
add esp, 8
mov dword [ebp - 0x40], edx
jmp 0x100453e8
test cl, 0x12
je 0x100453dd
cmp dword [eax + 8], 0
je 0x100453dd
push eax
call fcn.10071770
add esp, 4
mov dword [ebp - 0x40], edx
jmp 0x100453e8
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x1004542a
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x24]
cmp byte [eax + 0x57], 0
jne 0x100453fe
test ecx, ecx
je 0x1004540c
push ecx
push eax
call fcn.10025920
mov ecx, eax
add esp, 8
mov eax, dword [ebx]
mov dword [ebx + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1004542a
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x100], esi
jle 0x10045464
mov edi, dword [ebp - 0x1c]
mov ebx, eax
nop dword [eax]
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push ebx
call fcn.1003afc0
xor dword [ebp - 0x30], eax
inc esi
xor dword [ebp - 0x34], edx
add esp, 0x10
cmp esi, dword [ebx + 0x100]
jl 0x10045440
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x20]
test edi, edi
je 0x10045332
test ebx, ebx
je 0x1004553b
mov esi, dword [ebx]
mov dword [ebp - 0x3c], esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10045497
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x3c]
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x100454b5
jg 0x100454ab
cmp dword [ebx + 0x88], 0
jbe 0x100454b5
push ebx
push esi
call fcn.1006c280
add esp, 8
push ebx
call fcn.100d5790
add esp, 4
mov byte [ebx + 0x95], 1
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0
mov word [ebx + 0x92], 0xff02
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
cmp byte [esi + 0x57], 0
jne 0x10045514
test eax, eax
jne 0x10045514
xor ebx, ebx
jmp 0x10045520
push eax
push esi
call fcn.10025920
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1004553b
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
test edi, edi
jne 0x1004556f
mov edi, ebx
test ebx, ebx
jne 0x1004556f
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xe0]
push str.SELECT__s
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
call sym.e_sqlite3.dll_sqlite3_mprintf
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004557a
lea edi, [eax + 7]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
jmp 0x10045bcb
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x80
push 0xffffffffffffffff
push esi
push dword [ebx + 0xc]
call fcn.100b3340
push esi
mov edi, eax
call sym.e_sqlite3.dll_sqlite3_free
mov eax, dword [ebp - 0x48]
add esp, 0x20
mov dword [ebp - 8], eax
test edi, edi
jne 0x10045a0b
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push esi
call sym.e_sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x10045a16
test esi, esi
je 0x10045610
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100455ea
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x100455fc
xor ecx, ecx
cmp cx, word [esi + 0x90]
jb 0x10045615
mov eax, dword [esi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
movzx ecx, word [eax + 0x10]
test cl, 0x24
je 0x1004562b
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
jmp 0x10045676
test cl, 8
je 0x10045649
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10031ff0
add esp, 8
mov dword [ebp - 0x14], edx
jmp 0x10045673
test cl, 0x12
je 0x10045662
cmp dword [eax + 8], 0
je 0x10045662
push eax
call fcn.10071770
add esp, 4
mov dword [ebp - 0x14], edx
jmp 0x10045673
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x100456b8
mov eax, dword [esi]
mov ecx, dword [esi + 0x24]
cmp byte [eax + 0x57], 0
jne 0x10045689
test ecx, ecx
je 0x10045697
push ecx
push eax
call fcn.10025920
mov ecx, eax
add esp, 8
mov eax, dword [esi]
mov dword [esi + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100456b8
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x2c], 0
je 0x100457cb
mov ebx, dword [eax + 0x18]
inc ebx
test esi, esi
je 0x10045726
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100456f4
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 4]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x10045712
movzx eax, word [esi + 0x90]
cmp ebx, eax
jge 0x10045712
test ebx, ebx
js 0x10045712
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*8]
jmp 0x1004572b
mov eax, dword [esi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
movzx ecx, word [eax + 0x10]
test cl, 0x24
je 0x10045741
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x48], eax
jmp 0x10045786
test cl, 8
je 0x1004575f
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10031ff0
add esp, 8
mov dword [ebp - 0x48], edx
jmp 0x10045783
test cl, 0x12
je 0x10045778
cmp dword [eax + 8], 0
je 0x10045778
push eax
call fcn.10071770
add esp, 4
mov dword [ebp - 0x48], edx
jmp 0x10045783
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x100457c8
mov eax, dword [esi]
mov ecx, dword [esi + 0x24]
cmp byte [eax + 0x57], 0
jne 0x10045799
test ecx, ecx
je 0x100457a7
push ecx
push eax
call fcn.10025920
mov ecx, eax
add esp, 8
mov eax, dword [esi]
mov dword [esi + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100457c8
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, 0x28
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ecx
nop dword [eax + eax]
cmp ebx, dword [eax + 0x18]
jge 0x100455b4
mov eax, dword [eax + 0x20]
cmp byte [ebx + eax], 0
jne 0x100459f2
test esi, esi
je 0x10045852
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1004581a
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 4]
add esp, 4
mov edx, dword [esi + 0x78]
test edx, edx
je 0x1004583e
movzx eax, word [esi + 0x90]
lea ecx, [ebx + 1]
cmp ecx, eax
jge 0x1004583e
test ecx, ecx
js 0x1004583e
mov ecx, dword [ebp - 0x2c]
add ecx, edx
jne 0x10045857
xor edi, edi
jmp 0x1004588a
mov eax, dword [esi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov ecx, 0x1010df80
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x10045874
cmp byte [ecx + 0x12], 1
jne 0x10045874
mov edi, dword [ecx + 8]
jmp 0x1004588a
test dl, 1
je 0x1004587d
xor edi, edi
jmp 0x1004588a
push 1
push ecx
call fcn.100e5f30
add esp, 8
mov edi, eax
test esi, esi
je 0x100458c9
mov eax, dword [esi]
mov ecx, dword [esi + 0x24]
cmp byte [eax + 0x57], 0
jne 0x1004589d
test ecx, ecx
je 0x100458ab
push ecx
push eax
call fcn.10025920
mov ecx, eax
add esp, 8
mov eax, dword [esi]
mov dword [esi + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100458c9
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push edi
push dword [ebp - 0x10]
push dword [eax + 0x24]
call fcn.100a2c30
mov ecx, dword [ebp - 0x1c]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100459cf
jmp 0x10045903
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1010a1d8]
call esi
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x100459cc
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x38]
call fcn.1003af10
xor dword [ebp - 0xc], eax
lea esi, [edi + 1]
mov eax, dword [ebp + 8]
add esp, 0x20
xor dword [ebp - 8], edx
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x100]
cmp ebx, esi
jle 0x10045900
mov edi, dword [eax + 0x104]
add edi, 0x18
mov eax, dword [edi]
cmp eax, dword [ebp - 0x24]
jg 0x100459bc
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x38]
call fcn.1003af10
xor dword [ebp - 0xc], eax
add esp, 0x20
xor dword [ebp - 8], edx
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x10045993
mov ecx, dword [ebp - 0x1c]
jmp 0x10045900
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100459e7
mov eax, dword [ebp - 0x3c]
push ecx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp edi, 0x65
cmove edi, eax
mov esi, dword [ebp - 4]
inc ebx
add ecx, 0x28
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ecx
test edi, edi
jne 0x10045a16
mov eax, dword [ebp + 8]
jmp 0x100457e0
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 4]
jmp 0x10045a19
mov eax, dword [ebp - 8]
test esi, esi
je 0x10045bc8
mov ebx, dword [esi]
test ebx, ebx
jne 0x10045a56
push str.API_called_with_finalized_prepared_statement
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
push 0x1011b6ec
push 0x15732
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x1c
jmp 0x10045bc5
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10045a74
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 4]
add esp, 4
cmp dword [esi + 0x8c], 0
jl 0x10045a92
jg 0x10045a88
cmp dword [esi + 0x88], 0
jbe 0x10045a92
push esi
push ebx
call fcn.1006c280
add esp, 8
push esi
call fcn.100d5790
push dword [ebp - 4]
mov esi, dword [esi]
push esi
mov dword [ebp - 0x3c], eax
call fcn.100c8e90
mov edx, dword [ebp - 4]
add esp, 0xc
cmp dword [esi + 0x210], 0
jne 0x10045aca
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10045aca
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
cmp edx, dword [esi + 0x164]
jae 0x10045b08
cmp edx, dword [esi + 0x15c]
jb 0x10045aed
mov eax, dword [esi + 0x158]
mov dword [edx], eax
mov dword [esi + 0x158], edx
jmp 0x10045ba5
cmp edx, dword [esi + 0x160]
jb 0x10045b08
mov eax, dword [esi + 0x150]
mov dword [edx], eax
mov dword [esi + 0x150], edx
jmp 0x10045ba5
cmp dword [esi + 0x210], 0
je 0x10045b20
push edx
push esi
call fcn.10071700
add esp, 8
jmp 0x10045ba5
cmp dword [0x101250f8], 0
je 0x10045b91
mov eax, dword [0x10129520]
test eax, eax
je 0x10045b49
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov edx, dword [ebp - 4]
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push edx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push dword [ebp - 4]
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x10045ba5
mov esi, dword [0x10125150]
push eax
jmp 0x10045b98
mov esi, dword [0x1012511c]
push edx
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
cmp byte [ebx + 0x57], 0
mov eax, dword [ebp - 0x3c]
jne 0x10045bb2
test eax, eax
je 0x10045bbc
push eax
push ebx
call fcn.10025920
add esp, 8
push ebx
call fcn.100b2330
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
pop ebx
cmp dword [ebp - 0x30], ecx
jne 0x10045bd6
cmp dword [ebp - 0x34], eax
je 0x10045be7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret