Function at 0x47e450
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x940
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x93c], eax
push ebx
push edi
mov edi, ecx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x436]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x43c], ax
call fcn.004e9ba0
push 0x103
lea edx, [esp + 0x31]
push ebx
push edx
mov byte [esp + 0x38], bl
call fcn.004e9ba0
push 0x30b
lea eax, [esp + 0x141]
push ebx
push eax
mov byte [esp + 0x148], bl
call fcn.004e9ba0
add esp, 0x24
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.User_Node]
mov word [esp + eax + 0x430], cx
add eax, 2
cmp cx, bx
jne 0x47e4c0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x434]
push edx
call fcn.004a6170
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push str.SELECT_count___FROM_sqlite_master_WHERE_typetable_AND_name_s_
push ecx
call fcn.004ea179
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
add esp, 0x14
push ebx
lea eax, [esp + 0x128]
push eax
mov eax, dword [edi + 8]
push eax
call edx
test eax, eax
jne 0x47e535
pop edi
pop ebx
mov ecx, dword [esp + 0x93c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x940
ret
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
xor esi, esi
call edx
test eax, eax
jne 0x47e55c
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push 0x609864
call edx
test eax, eax
jne 0x47e55c
lea esi, [eax + 1]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x50]
call edx
cmp esi, ebx
je 0x47e693
push 0x30c
lea eax, [esp + 0x640]
push ebx
push eax
call fcn.004e9ba0
lea edi, [esp + 0x648]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x47e590
mov ecx, 0x34
mov esi, str.create_table__s_ID_INTEGER_PRIMARY_KEY_AUTOINCREMENT__StartDate_Text__StartTime_Text__EndDate_Text__EndTime_Text__Title_Text__Content_Text__IsWholeDay_Integer__IsRemind_Integer__RemindIndex_Integer__Pos_Integer
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebp
movsb byte es:[edi], byte [esi]
xor ebp, ebp
lea ebx, [ebx]
xor eax, eax
push ebp
lea ecx, [esp + 0x18]
push str.__Reverse_d_Text
push ecx
mov byte [esp + 0x20], bl
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call fcn.004ea179
lea eax, [esp + 0x20]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x47e5e8
lea edi, [esp + 0x640]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x47e600
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x47e600
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0xf
rep movsb byte es:[edi], byte [esi]
jl 0x47e5b0
lea edi, [esp + 0x640]
dec edi
pop ebp
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x47e625
mov ecx, 8
mov esi, str.__create_index__s_index_on__s_ID_
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
lea edx, [esp + 0x648]
push edx
lea eax, [esp + 0x138]
push eax
movsw word es:[edi], word [esi]
call fcn.004ea179
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
add esp, 0x14
push ebx
lea eax, [esp + 0x12c]
push eax
call edx
test eax, eax
je 0x47e693
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x93c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x940
ret
mov ecx, dword [esp + 0x948]
pop esi
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004e8c89
add esp, 0x940
ret