Function at 0x45711a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
and dword [ebp - 0x10], 0
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edx, ecx
mov dword [ebp - 0x14], ebx
push 6
pop ecx
lea edi, [ebp - 0x40]
mov dword [ebp - 8], edx
mov eax, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x30]
mov esi, eax
mov edi, dword [esi + 0x2c]
test edi, edi
jne 0x457712
cmp dword [esi + 0x38], edi
jne 0x457712
mov edi, edx
mov ecx, edi
call fcn.00456ba5
mov dl, byte [ebp - 0x40]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp dl, 0xc
jne 0x45718a
mov eax, dword [ebx]
push dword [eax]
push dword [ebp - 0x3c]
push 0x6e
pop edx
call fcn.00431977
pop ecx
mov dl, 0xe
pop ecx
mov byte [ebp - 0x40], dl
test dword [ebx + 8], 0x400
je 0x4571a9
lea eax, [ebp - 0x40]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0045709c
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x457741
test dword [ebx + 8], 0x2000
je 0x4571c5
lea eax, [ebp - 0x40]
mov edx, ebx
push eax
mov ecx, edi
call fcn.00456dd6
pop ecx
jmp 0x457642
cmp dword [ebx + 0x2c], 0
je 0x4571dd
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00457a0f
pop ecx
jmp 0x45775e
cmp dword [esi + 0x30], 0
jne 0x457206
push 0x4a647c
push 1
push edi
call fcn.00431ace
add esp, 0xc
push str.likely
push 1
push edi
call fcn.00431ace
mov dl, byte [ebp - 0x40]
add esp, 0xc
movzx eax, byte [ebx + 4]
sub eax, 0x74
je 0x4574b8
sub eax, 1
je 0x4573ba
sub eax, 1
je 0x4574b8
mov ecx, dword [edi + 0x28]
push 0
push ecx
mov dword [ebp - 0x1c], ecx
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
inc eax
push 0x6e
pop edx
mov dword [edi + 0x28], eax
call fcn.00431977
mov ecx, ebx
mov dword [ebx + 0x14], eax
call fcn.004550b8
push dword [ebp - 0x1c]
xor edx, edx
lea ecx, [ebp - 0x58]
inc edx
or dword [eax + 8], 0x20
call fcn.00454fc5
add esp, 0xc
mov eax, ecx
mov edx, esi
mov ecx, edi
push eax
call fcn.004599ac
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x457741
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebp - 0x24]
push 0x6e
pop edx
call fcn.00431977
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x38]
movzx ecx, byte [ebx + 4]
and dword [ebx + 0x30], 0
and dword [ebx + 0x38], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
call fcn.004561bf
push eax
push 0x4a64a0
push 1
push edi
call fcn.00431ace
lea eax, [ebp - 0x58]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004599ac
mov dword [ebp - 0x10], eax
add esp, 0x1c
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x30], esi
movzx eax, word [esi + 6]
cmp word [ebx + 6], ax
jle 0x4572e1
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x18]
call fcn.0043fbd7
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x38], eax
call fcn.00431bbd
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x28], esi
call fcn.00431bbd
mov edx, dword [ebp - 0x14]
mov ecx, edi
push esi
mov ebx, eax
call fcn.00456bc5
pop ecx
mov ecx, dword [ebp - 0xc]
push esi
push dword [ebp - 0x1c]
push 0x25
pop edx
call fcn.00431977
mov ecx, edi
call fcn.00443d03
mov ecx, dword [ebp - 0xc]
mov esi, eax
push esi
push dword [ebp - 0x1c]
push 0x7c
pop edx
call fcn.00431977
mov ecx, dword [ebp - 0xc]
mov edi, eax
push 0
push esi
push ebx
push dword [ebp - 0x24]
push 0x1d
pop edx
call fcn.00431b6e
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.00443d22
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
push esi
push ebx
push eax
push 0
push 0
push dword [ebp - 0x1c]
call fcn.00455991
mov edx, ebx
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00431bff
push edi
mov edi, dword [ebp - 0x1c]
push edi
push 7
pop edx
call fcn.00431977
add esp, 0x40
mov edx, esi
mov ecx, ebx
call fcn.00431bff
push 0
lea eax, [edi + 1]
push eax
push 0x72
pop edx
call fcn.00431977
push 0
push edi
push 0x72
pop edx
mov ecx, ebx
call fcn.00431977
add esp, 0x10
jmp 0x45762f
xor eax, eax
mov edx, esi
mov dword [ebp - 0x24], eax
mov ecx, edi
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004599ac
and dword [ebx + 0x38], 0
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x457741
and dword [ebx + 0x30], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0xc], ecx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
test ecx, ecx
je 0x45742e
push ecx
mov ecx, dword [ebp - 0xc]
push 0x16
pop edx
call fcn.00431963
pop ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x45742e
push ecx
inc ecx
mov edx, 0x95
push ecx
push dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.004318f3
add esp, 0xc
push 0x4a6388
push 1
push edi
call fcn.00431ace
add esp, 0xc
lea eax, [ebp - 0x40]
mov edx, ebx
mov ecx, edi
push eax
call fcn.004599ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x30]
pop ecx
mov cx, word [ebx + 6]
mov dword [ebx + 0x30], esi
mov dx, word [esi + 6]
mov dword [ebp - 0x20], eax
call fcn.0041d831
mov word [ebx + 6], ax
mov ecx, dword [esi + 0x38]
mov word [ebp - 6], ax
test ecx, ecx
je 0x45749e
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x28]
call fcn.004407dd
test eax, eax
je 0x45749e
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x45749e
cdq
push edx
push eax
call fcn.0041d891
pop ecx
pop ecx
cmp word [ebp - 6], ax
jle 0x45749e
mov word [ebx + 6], ax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x457635
mov ecx, dword [ebp - 0xc]
mov edx, eax
call fcn.00431e98
jmp 0x457635
cmp dl, 1
jne 0x4574c5
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x4574f2
mov ecx, dword [edi + 0x28]
push 0
push ecx
mov dword [ebp - 0x1c], ecx
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
push 0x6e
pop edx
mov dword [edi + 0x28], eax
call fcn.00431977
pop ecx
pop ecx
mov ecx, ebx
mov dword [ebx + 0x14], eax
call fcn.004550b8
or dword [eax + 8], 0x20
mov eax, dword [ebp - 0x1c]
xor edx, edx
lea ecx, [ebp - 0x70]
push eax
inc edx
call fcn.00454fc5
add esp, 4
mov eax, ecx
mov edx, esi
mov ecx, edi
push eax
call fcn.004599ac
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x457741
and dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x38]
and dword [ebx + 0x38], 0
cmp byte [ebx + 4], 0x76
movzx ecx, byte [ebx + 4]
mov dword [ebp - 0x28], eax
sete al
inc al
mov byte [ebp - 0x70], al
call fcn.004561bf
push eax
push 0x4a64a0
push 1
push edi
call fcn.00431ace
lea eax, [ebp - 0x70]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004599ac
mov edx, dword [ebx + 0x2c]
add esp, 0x14
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call fcn.004405d0
mov eax, dword [ebx + 0x30]
and dword [ebx + 0x2c], 0
cmp byte [ebx + 4], 0x74
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x30], esi
jne 0x45758b
mov dx, word [esi + 6]
mov cx, word [ebx + 6]
call fcn.0041d831
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x18]
call fcn.0043fbd7
and dword [ebx + 0xc], 0
and dword [ebx + 0x10], 0
cmp byte [ebp - 0x40], 1
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x38], eax
je 0x457635
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.00431bbd
mov ecx, esi
mov ebx, eax
call fcn.00431bbd
mov edx, dword [ebp - 0x14]
mov edi, eax
mov ecx, dword [ebp - 8]
push ebx
call fcn.00456bc5
pop ecx
push ebx
push dword [ebp - 0x1c]
mov ecx, esi
push 0x25
pop edx
call fcn.00431977
mov ecx, esi
call fcn.00431d61
mov edx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x40]
push ebx
push edi
push eax
push 0
push 0
push dword [ebp - 0x1c]
call fcn.00455991
mov edx, edi
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.00431bff
push esi
mov esi, dword [ebp - 0x1c]
push esi
push 7
pop edx
call fcn.00431977
mov edx, ebx
mov ecx, edi
call fcn.00431bff
push 0
push esi
push 0x72
pop edx
call fcn.00431977
add esp, 0x30
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
cmp dword [ebx + 0x34], 0
jne 0x457642
mov ecx, edi
call fcn.00431b22
test byte [ebx + 8], 0x20
je 0x457741
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [ebp - 0x1c], eax
call fcn.004560a5
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jne 0x457673
mov dword [ebp - 0x10], 7
jmp 0x457741
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + 0x14]
xor eax, eax
mov dword [ebp - 0x24], eax
test ecx, ecx
jle 0x4576ac
push eax
mov edx, ebx
mov ecx, edi
call fcn.00456cd9
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x45769b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
add esi, 4
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, ecx
jl 0x457682
and dword [ebp - 0x24], 0
lea edi, [ebx + 0x14]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
test eax, eax
js 0x4576f8
push ecx
mov edx, eax
mov ecx, esi
call fcn.00431e60
pop ecx
push 0xfffffffffffffff7
mov ecx, ebx
call fcn.00456133
mov edx, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004320a2
or dword [edi], 0xffffffff
add edi, 4
mov edx, dword [ebp - 0x24]
pop ecx
inc edx
mov dword [ebp - 0x24], edx
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp edx, 2
jl 0x4576b9
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx + 0x30]
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4576ac
mov ecx, dword [ebp - 8]
call fcn.0045611f
jmp 0x457741
movzx ecx, byte [ebx + 4]
call fcn.004561bf
push eax
mov ecx, 0x4a6448
test edi, edi
mov eax, str.sqlite_compileoption_used
cmove eax, ecx
push eax
push 0x4a6450
push edx
call fcn.0041c854
add esp, 0x10
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x18]
call fcn.004550a2
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret