Function at 0x42aa10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d53f
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x5c8a30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 1
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call fcn.00489a00
mov byte [ebp - 4], 2
call fcn.00407a70
mov ecx, eax
test ecx, ecx
je 0x42ad85
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
sub ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, edx
sbb eax, dword [ebp + 0x18]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push str.SELECT_life_percent__utc_time__ac_status_FROM_BatteryHistoryInfo_WHERE_utc_time____lld_and_utc_time____lld_ORDER_BY_utc_time_ASC
push eax
call fcn.00406c80
add esp, 0x18
call fcn.0042af20
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov ecx, eax
call fcn.0042aeb0
test eax, eax
jne 0x42abf0
call fcn.00440010
mov ecx, eax
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42abc0
push 0x81
push str.d:jenkins.jenkinsworkspacegroup_clean_battert_protect_battery_protect_battery_protect_ui_src_record_battery_history_record.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.0040abd0
push 3
push 0x5889ac
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0040abd0
mov byte [ebp - 4], 5
call fcn.00440010
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x10c]
push 0x38
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404b00
mov dword [ebp - 0x34], eax
push str.FetchBatteryHistoryInfoWithinInterval
push eax
mov byte [ebp - 4], 6
call fcn.00406170
add esp, 8
push str._empty
push dword [ebp - 0x34]
call fcn.00406170
mov ecx, dword [ebp - 0x30]
add esp, 8
mov eax, dword [ecx]
push dword [ebp - 0x34]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.00406290
lea ecx, [ebp - 0x58]
call fcn.00405500
lea ecx, [ebp - 0x70]
call fcn.00405500
or eax, 0xffffffff
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42abdc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.00489ae0
jmp 0x42ad65
lea ecx, [ebp - 0x2c]
call fcn.00489d70
lea ecx, [ebp - 0x2c]
test al, al
jne 0x42ac79
push 0
push str.life_percent
call fcn.0048a2b0
push 0
push str.ac_status
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.0048a2b0
push 0
push 0
push str.utc_time
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0048a270
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x4c], edx
cmp dword [edi + 8], eax
je 0x42ac60
movups xmm0, xmmword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
movups xmmword [eax], xmm0
add dword [edi + 4], 0x10
call fcn.0048a2f0
jmp 0x42abf0
lea ecx, [ebp - 0x50]
push ecx
push eax
mov ecx, edi
call fcn.0042a7c0
lea ecx, [ebp - 0x2c]
call fcn.0048a2f0
jmp 0x42abf0
call fcn.0048a210
jmp 0x42abc0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00441ed9
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.004068d0
int3