Function at 0x43629a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x63c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x54], eax
push edi
mov edi, dword [esi]
test ecx, ecx
jne 0x4362d2
test eax, eax
je 0x436620
cmp dword [esi + 0x40], 0
jne 0x436620
cmp byte [edi + 0x1e], 0
jne 0x436620
mov ebx, dword [esi + 0x180]
mov dword [ebp - 0x6c], ebx
test ebx, ebx
je 0x436620
mov edx, dword [ebx + 0x50]
mov ecx, edi
call fcn.0043f14c
cmp dword [ebx + 0x30], 0
mov dword [ebp - 0x5c], eax
je 0x43636c
push 0x24
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x38
push 0
push eax
call fcn.0044f970
mov eax, dword [ebx + 4]
xor ecx, ecx
mov edx, dword [ebx + 0x30]
inc ecx
or dword [ebp - 0x30], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
mov word [ebp - 0x50], cx
mov byte [ebp - 0x82], cl
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], eax
call fcn.0043104b
test eax, eax
jne 0x436620
mov al, byte [edi + 0x80]
test al, al
je 0x43638a
mov eax, dword [edi + 0x7c]
mov dword [ebx + 0x18], eax
mov al, byte [edi + 0x80]
test al, al
jne 0x43655c
mov ecx, esi
call fcn.0044149c
mov dword [ebp - 0x60], eax
test eax, eax
je 0x436620
push 0
push 0x21
pop edx
mov ecx, eax
call fcn.00428998
mov eax, dword [ebx + 0x1c]
mov edx, str.VIEW
test eax, eax
mov dword [ebp - 0x58], str.table
pop ecx
mov ecx, str.TABLE
cmove edx, ecx
mov ecx, str.view
cmove ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x58], ecx
je 0x436485
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
push dword [esi + 0x148]
push 1
push 9
pop edx
call fcn.00428924
mov ecx, dword [ebp - 0x60]
add esp, 0xc
mov dl, 1
call fcn.00428ca8
push 1
push 8
pop edx
lea ecx, [ebp - 0x14]
mov dword [esi + 0x44], 2
call fcn.0043f75c
mov edx, dword [ebp - 0x54]
add esp, 4
xor eax, eax
push eax
push eax
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00443278
mov ecx, dword [ebp - 0x60]
push 1
push 0x21
pop edx
call fcn.00428998
add esp, 0x14
cmp dword [esi + 0x40], 0
jne 0x43646a
push dword [ebp - 0x54]
xor edx, edx
mov ecx, esi
call fcn.00440918
pop ecx
test eax, eax
je 0x436620
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
mov ecx, eax
and dword [eax + 8], 0
and dword [eax + 0xc], 0
call fcn.00435466
mov eax, dword [edi + 8]
mov edx, ebx
mov ecx, dword [ebx + 0x50]
sub ecx, dword [eax + 0x2c]
neg ecx
sbb ecx, ecx
inc ecx
push ecx
mov ecx, edi
call fcn.004360ec
pop ecx
jmp 0x4364a4
mov ecx, dword [ebp - 0x68]
mov eax, dword [esi + 0x168]
push eax
mov ecx, dword [ecx]
sub ecx, eax
inc ecx
push ecx
push edx
push str.CREATE__s__.s
push edi
call fcn.0041b42f
add esp, 0x14
push dword [esi + 0x144]
imul ecx, dword [ebp - 0x5c], 0x18
cmp dword [ebp - 0x5c], 1
push eax
push dword [esi + 0x148]
mov dword [ebp - 0x54], eax
mov eax, str.sqlite_master
push dword [ebx + 4]
mov dword [ebp - 0x64], ecx
push dword [ebx + 4]
push dword [ebp - 0x58]
mov dword [ebp - 0x58], str.sqlite_temp_master
cmove eax, dword [ebp - 0x58]
push eax
mov eax, dword [edi + 8]
push dword [ecx + eax]
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push esi
call fcn.00434fdc
push dword [ebp - 0x54]
push edi
call fcn.0041a0e3
mov edx, dword [ebp - 0x5c]
add esp, 0x30
mov ecx, esi
call fcn.00435fe5
cmp byte [ebx + 0x3c], 0
je 0x436525
mov ecx, dword [edi + 8]
add ecx, dword [ebp - 0x64]
mov eax, dword [ecx + 0x14]
cmp dword [eax + 0x54], 0
jne 0x436525
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push esi
call fcn.00434fdc
add esp, 0xc
push 0xffffffffffffffff
push ecx
push dword [ebx + 4]
push str.tbl_name_q
push edi
call fcn.0041b42f
mov ecx, dword [ebp - 0x60]
add esp, 0x10
push eax
push 0
push 0
push dword [ebp - 0x5c]
push 0x1f
pop edx
call fcn.004289c1
add esp, 0x14
cmp byte [edi + 0x80], 0
je 0x436620
cmp dword [esi + 0x40], 0
jne 0x436620
mov eax, dword [ebx + 0x50]
push ebx
push dword [ebx + 4]
mov dword [ebp - 0x54], eax
call fcn.00457a20
mov edx, dword [ebx + 4]
inc eax
pop ecx
mov ecx, dword [ebp - 0x54]
push eax
add ecx, 4
call fcn.0041cb2b
pop ecx
pop ecx
test eax, eax
je 0x436595
mov byte [edi + 0x1e], 1
jmp 0x436620
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4365eb
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x64]
add eax, 0x40
mov dword [ebp - 0x54], eax
push dword [ebx + 8]
call fcn.00457a20
mov edx, dword [ebx + 8]
pop ecx
mov ecx, dword [ebp - 0x54]
lea esi, [eax + 1]
push esi
call fcn.0041cb12
mov edx, dword [ebx + 8]
pop ecx
mov ecx, dword [ebp - 0x54]
push ebx
push esi
mov dword [ebx + 0xc], eax
call fcn.0041cb2b
pop ecx
pop ecx
cmp eax, ebx
jne 0x4365de
mov byte [edi + 0x1e], 1
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4365ab
mov ebx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
and dword [esi + 0x180], 0
inc dword [edi + 0x28]
or dword [edi + 0xc], 0x10
cmp dword [ebx + 0x1c], 0
jne 0x436620
mov edx, dword [ebp - 0x74]
mov ecx, dword [esi + 0x168]
mov edx, dword [edx]
test edx, edx
jne 0x436613
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
sub edx, ecx
call fcn.0041bbd9
add eax, 0xd
mov dword [ebx + 0x34], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044daed
leave
ret