Function at 0x404370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x43055c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x104
mov ebx, ecx
mov dword [ebp - 0x50], eax
or esi, 0xffffffff
mov dword [ebp - 0x4c], 0
call fcn.00414f98
mov edi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
cmp eax, 0xd
ja case.default.0x4043b0
jmp dword [eax*4 + 0x404a80]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebx + 0x444]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push edx
push eax
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4043e8
push str.tb_today
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x404a6a
push 0x427de0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp case.default.0x4043b0
push str.select_id__time_from_tb_today_where_id_select_count___from_tb_today_
push edi
call fcn.00414004
mov edx, dword [ebx + 0x444]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x403a80
push edi
push edx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x404436
push str.time_selected
call fcn.00404bc0
add esp, 4
jmp case.default.0x4043b0
cmp dword [0x431dec], 0
je case.default.0x4043b0
cmp dword [0x431de8], 0
jle case.default.0x4043b0
mov eax, dword [0x431dec]
push eax
push str.select_count_time___sum_key_down_times__from_tb_today_where_time_d
push edi
call fcn.00414004
mov edx, dword [ebx + 0x444]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x403ac0
push edi
push edx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
mov eax, dword [0x431de8]
add esp, 0x20
sub eax, dword [0x431df4]
mov dword [0x431de8], eax
je case.default.0x4043b0
push eax
push str.select_id__time_from_tb_today_where_id___d
push edi
call fcn.00414004
mov ecx, dword [ebx + 0x444]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x403a80
push edi
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x404424
cmp dword [0x431de8], eax
jg 0x404450
jmp case.default.0x4043b0
push str.TODAY_MOUSE_DOWN
call fcn.00404bc0
push str.select_id__time_from_tb_today_where_id_select_count___from_tb_today_
push edi
call fcn.00414004
mov eax, dword [ebx + 0x444]
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x403a80
push edi
push eax
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x20
test esi, esi
je 0x40451a
push 0x427cc0
call fcn.00404bc0
add esp, 4
jmp case.default.0x4043b0
cmp dword [0x431dec], 0
je case.default.0x4043b0
cmp dword [0x431de8], 0
jle case.default.0x4043b0
push str._while__g_id___0__1
call fcn.00404bc0
mov ecx, dword [0x431dec]
push ecx
push str.select_count_time___sum_mouse_down_times__from_tb_today_where_time_d
push edi
call fcn.00414004
mov eax, dword [ebx + 0x444]
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x403b10
push edi
push eax
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
mov eax, dword [0x431de8]
add esp, 0x24
sub eax, dword [0x431df4]
mov dword [0x431de8], eax
je case.default.0x4043b0
push eax
push str.select_id__time_from_tb_today_where_id___d
push edi
call fcn.00414004
mov edx, dword [ebx + 0x444]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x403a80
push edi
push edx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4045c1
cmp dword [0x431de8], eax
jg 0x404534
jmp case.default.0x4043b0
push 0x427c38
call fcn.00404bc0
add esp, 4
jmp case.default.0x4043b0
push str.TODAY_MOUSE_DISTANCE
call fcn.00404bc0
push str.select_id__time_from_tb_today_where_id_select_count___from_tb_today_
push edi
call fcn.00414004
mov ecx, dword [ebx + 0x444]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x403a80
push edi
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x20
test esi, esi
je 0x40461b
push str.time_selected
call fcn.00404bc0
add esp, 4
jmp case.default.0x4043b0
cmp dword [0x431dec], 0
je case.default.0x4043b0
cmp dword [0x431de8], 0
jle case.default.0x4043b0
jmp 0x404640
mov edx, dword [0x431dec]
push edx
push str.select_count_time___sum_mouse_move_dis__from_tb_today_where_time_d
push edi
call fcn.00414004
mov ecx, dword [ebx + 0x444]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x403b70
push edi
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
mov eax, dword [0x431de8]
add esp, 0x20
sub eax, dword [0x431df4]
mov dword [0x431de8], eax
je case.default.0x4043b0
push eax
push str.select_id__time_from_tb_today_where_id___d
push edi
call fcn.00414004
mov eax, dword [ebx + 0x444]
lea edx, [ebp - 0x4c]
push edx
push 0
push 0x403a80
push edi
push eax
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4046bf
cmp dword [0x431de8], eax
jg 0x404640
jmp case.default.0x4043b0
push 0x427ba0
call fcn.00404bc0
add esp, 4
jmp case.default.0x4043b0
mov edx, dword [0x4304e4]
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x4304e4
mov dword [0x431de8], esi
call eax
lea ecx, [ebp - 0x5c]
add eax, 0x10
push ecx
mov dword [ebp - 0x54], eax
call fcn.0041524c
add esp, 4
xor eax, eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x50], esi
add dword [ebp - 0x5c], 0xfffeae80
lea edx, [ebp - 0x5c]
push edx
adc dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call fcn.00414fc4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [ebp - 0x24]
push str._04d_02d_02d
push ecx
call fcn.00414004
lea edx, [ebp - 0x24]
push edx
push str.select_day__sum_key_down_times__from_tb_healthAide_where_day_s
push edi
call fcn.00414004
mov ecx, dword [ebx + 0x444]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x403bd0
push edi
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x3c
test esi, esi
jne 0x4047cc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
push edx
mov edx, dword [0x431de4]
inc eax
push eax
mov eax, dword [0x431de8]
lea ecx, [eax + eax*4 + 0x96]
lea eax, [edx + ecx*4]
push str._02d__02d
push eax
call fcn.00414004
mov eax, dword [ebp - 0x50]
inc dword [0x431de8]
inc eax
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp eax, 7
jb 0x404720
jmp 0x4047d9
push str.hkdtime_selected
call fcn.00404bc0
add esp, 4
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.default.0x4043b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp case.default.0x4043b0
mov edx, dword [0x4304e4]
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x4304e4
mov dword [0x431de8], esi
call eax
lea ecx, [ebp - 0x5c]
add eax, 0x10
push ecx
mov dword [ebp - 0x50], eax
call fcn.0041524c
add esp, 4
xor eax, eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x54], esi
add dword [ebp - 0x5c], 0xfffeae80
lea edx, [ebp - 0x5c]
push edx
adc dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call fcn.00414fc4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [ebp - 0x24]
push str._04d_02d_02d
push ecx
call fcn.00414004
lea edx, [ebp - 0x24]
push edx
push str.select_day__sum_mouse_down_times__from_tb_healthAide_where_day_s
push edi
call fcn.00414004
mov ecx, dword [ebx + 0x444]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x403c10
push edi
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x3c
test esi, esi
jne 0x404902
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
push edx
mov edx, dword [0x431de4]
inc eax
push eax
mov eax, dword [0x431de8]
lea ecx, [eax + eax*4 + 0xbe]
lea eax, [edx + ecx*4]
push str._02d__02d
push eax
call fcn.00414004
mov eax, dword [ebp - 0x54]
inc dword [0x431de8]
inc eax
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp eax, 7
jb 0x404850
mov eax, dword [ebp - 0x50]
jmp 0x4047dc
push str.hmdtime_selected
call fcn.00404bc0
mov eax, dword [ebp - 0x50]
add esp, 4
jmp 0x4047dc
mov edx, dword [0x4304e4]
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x4304e4
mov dword [0x431de8], esi
call eax
lea ecx, [ebp - 0x5c]
add eax, 0x10
push ecx
mov dword [ebp - 0x50], eax
call fcn.0041524c
add esp, 4
xor eax, eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x54], esi
jmp 0x404970
add dword [ebp - 0x5c], 0xfffeae80
lea edx, [ebp - 0x5c]
push edx
adc dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x48]
push eax
call fcn.00414fc4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [ebp - 0x24]
push str._04d_02d_02d
push ecx
call fcn.00414004
lea edx, [ebp - 0x24]
push edx
push str.select_day__sum_mouse_fix__from_tb_healthAide_where_day_s
push edi
call fcn.00414004
mov ecx, dword [ebx + 0x444]
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x403c50
push edi
push ecx
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x3c
test esi, esi
jne 0x404902
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
push edx
mov edx, dword [0x431de4]
inc eax
push eax
mov eax, dword [0x431de8]
lea ecx, [eax + eax*4 + 0xe6]
lea eax, [edx + ecx*4]
push str._02d__02d
push eax
call fcn.00414004
mov eax, dword [ebp - 0x54]
inc dword [0x431de8]
inc eax
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp eax, 7
jb 0x404970
mov eax, dword [ebp - 0x50]
jmp 0x4047dc
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
jmp 0x404a48
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x404170
jmp 0x404a48
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0x404280
mov edx, dword [ebp - 0x50]
mov eax, dword [ebx + 0x444]
push edx
push eax
call sub.sqlite3.dll_sqlite3_exec
mov esi, eax
add esp, 0x14
test edi, edi
je 0x404a6a
push edi
call fcn.00414f8d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004138ed
mov esp, ebp
pop ebp
ret 8