Function at 0x437990
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x95c], ecx
xor eax, eax
mov word [ebp - 0x630], ax
push 0x206
push 0
lea ecx, [ebp - 0x62e]
push ecx
call fcn.00486c20
add esp, 0xc
mov byte [ebp - 0x420], 0
push 0x103
push 0
lea edx, [ebp - 0x41f]
push edx
call fcn.00486c20
add esp, 0xc
mov byte [ebp - 0x318], 0
push 0x30b
push 0
lea eax, [ebp - 0x317]
push eax
call fcn.00486c20
add esp, 0xc
push 0x54fcf0
lea ecx, [ebp - 0x630]
push ecx
call fcn.00486ae5
add esp, 8
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x630]
push eax
call fcn.0044a980
add esp, 8
lea ecx, [ebp - 0x420]
push ecx
push str.SELECT_count___FROM_sqlite_master_WHERE_typetable_AND_name_s_
lea edx, [ebp - 0x318]
push edx
call fcn.00487c8c
add esp, 0xc
push 0
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x95c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x95c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x95c]
mov eax, dword [edx + 4]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x437a8b
xor eax, eax
jmp 0x437c4a
mov dword [ebp - 0x428], 0
mov ecx, dword [ebp - 0x95c]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x95c]
mov ecx, dword [eax + 8]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
test eax, eax
jne 0x437adf
push 0
push 0x54fd60
mov ecx, dword [ebp - 0x95c]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x95c]
mov ecx, dword [eax + 8]
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x437adf
mov dword [ebp - 0x428], 1
mov ecx, dword [ebp - 0x95c]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x95c]
mov ecx, dword [eax + 8]
mov edx, dword [edx]
mov eax, dword [edx + 0x50]
call eax
cmp dword [ebp - 0x428], 0
je 0x437c45
mov byte [ebp - 0x940], 0
push 0x30b
push 0
lea ecx, [ebp - 0x93f]
push ecx
call fcn.00486c20
add esp, 0xc
push 0x30c
push 0
lea edx, [ebp - 0x940]
push edx
call fcn.00486c20
add esp, 0xc
push 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
lea eax, [ebp - 0x940]
push eax
call fcn.00486b20
add esp, 8
mov dword [ebp - 0x944], 0
jmp 0x437b67
mov ecx, dword [ebp - 0x944]
add ecx, 1
mov dword [ebp - 0x944], ecx
cmp dword [ebp - 0x944], 0xf
jge 0x437bd1
mov byte [ebp - 0x958], 0
xor edx, edx
mov dword [ebp - 0x957], edx
mov dword [ebp - 0x953], edx
mov dword [ebp - 0x94f], edx
mov dword [ebp - 0x94b], edx
mov word [ebp - 0x947], dx
mov byte [ebp - 0x945], dl
mov eax, dword [ebp - 0x944]
push eax
push str.__Reverse_d_Text
lea ecx, [ebp - 0x958]
push ecx
call fcn.00487c8c
add esp, 0xc
lea edx, [ebp - 0x958]
push edx
lea eax, [ebp - 0x940]
push eax
call fcn.00486b20
add esp, 8
jmp 0x437b58
push str.__create_index__s_index_on__s_ID_
lea ecx, [ebp - 0x940]
push ecx
call fcn.00486b20
add esp, 8
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x940]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.00487c8c
add esp, 0x14
push 0
lea ecx, [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x95c]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x95c]
mov ecx, dword [ecx + 4]
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x437c45
xor eax, eax
jmp 0x437c4a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret