Function at 0x128fa6a0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12989b40
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
xor ebp, ebp
cmp edi, ebp
je 0x128fab5e
mov esi, dword [esp + 0x48]
cmp esi, ebp
je 0x128fab5e
mov eax, dword [0x12993aec]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
lea eax, [esi + 0x48]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x40], 3
call fcn.12907ea0
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x48], 4
call fcn.12907c40
lea eax, [esp + 0x28]
push eax
call fcn.128d9e00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.129087d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.12908640
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str.QueryBaiduNetDiskUpDownHistory________wstrFilePath:__s__dwType:__d__nUpDownLastTime__I64u_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x20
mov ecx, 0x129cd048
call fcn.128e0380
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, 0x129cd048
call fcn.128e0530
cmp eax, ebp
jne 0x128faaf7
push 0x129cd044
lea ecx, [esp + 0x24]
call fcn.12907ea0
push 0x129cd044
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.12907ea0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
push eax
push ecx
push eax
mov eax, dword [edi + 0x20]
push edx
push eax
lea ecx, [esp + 0x34]
mov bl, 7
push str.SELECT__s__s__s_FROM__s_WHERE__s____8
push ecx
mov byte [esp + 0x58], bl
call fcn.1290b5c0
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x20]
add esp, 0x1c
push eax
push edx
push eax
mov eax, dword [edi + 0x1c]
push eax
push ecx
lea edx, [esp + 0x30]
push str.SELECT__s__s__s_FROM__s_WHERE__s____8
push edx
call fcn.1290b5c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add esp, 0x1c
lea eax, [esp + 0x44]
push ebp
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x129cd048
call fcn.128e0550
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, eax
lea eax, [esp + 0x48]
push ebp
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x129cd048
call fcn.128e0550
test edi, edi
jne 0x128faa93
test eax, eax
jne 0x128faa93
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
mov edx, dword [esp + 0x44]
push eax
push ecx
push 8
push edx
mov ecx, 0x129cd048
call fcn.128e0580
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x48]
push eax
push ecx
push 8
push edx
mov ecx, 0x129cd048
call fcn.128e0580
mov eax, dword [esp + 0x48]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
jne 0x128fa98b
mov ecx, dword [esp + 0x48]
push 0
push ecx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x18]
call fcn.129088c0
mov edx, dword [esp + 0x48]
push 1
push edx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x30]
call fcn.129088c0
mov eax, dword [esp + 0x48]
push 2
push eax
mov ecx, 0x129cd048
call fcn.128e0600
mov ecx, dword [esp + 0x14]
mov edi, eax
mov ebp, edx
mov eax, dword [ecx - 8]
test eax, eax
je 0x128fa973
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push str.pan.baidu.com
push eax
call fcn.12908f90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 8
call fcn.129087d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], bl
call fcn.12908640
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebp
push edi
push 2
push str.QueryBaiduNetDiskUpDownHistory__Add_Type__d__iTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
add esp, 0x24
lea eax, [esi + 0x250]
push 0x129b4398
push eax
push ecx
push edx
push ebp
push edi
push 2
mov ecx, 0x129d2fe0
call fcn.128ff690
mov eax, dword [esp + 0x48]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
je 0x128fa8a2
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, 0x129cd048
call fcn.128e05e0
cmp eax, 0x64
jne 0x128faa8c
mov edx, dword [esp + 0x44]
push 0
push edx
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x14]
call fcn.129088c0
mov eax, dword [esp + 0x44]
push 1
push eax
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x2c]
call fcn.129088c0
mov ecx, dword [esp + 0x44]
push 2
push ecx
mov ecx, 0x129cd048
call fcn.128e0600
mov ebp, edx
mov edx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [edx - 8]
test eax, eax
je 0x128faa74
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push str.pan.baidu.com
push ecx
call fcn.12908f90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 9
call fcn.129087d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], bl
call fcn.12908640
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push edx
push eax
push ebp
push edi
push 1
push str.QueryBaiduNetDiskUpDownHistory__Add_Type__d__iTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
add esp, 0x24
lea ecx, [esi + 0x250]
push 0x129b4398
push ecx
push edx
push eax
push ebp
push edi
push 1
mov ecx, 0x129d2fe0
call fcn.128ff690
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, 0x129cd048
call fcn.128e05e0
cmp eax, 0x64
je 0x128fa9a3
mov ebp, 1
jmp 0x128faaae
push eax
push edi
push str.QueryBaiduNetDiskUpDownHistory_sqlite3_prepare16_v2__Failed__nPreUpStmt:__d__nPreDownStmt:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.12908640
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call fcn.12908640
mov edx, dword [esp + 0x44]
mov ecx, 0x129cd048
push edx
call fcn.128e0720
mov eax, dword [esp + 0x48]
mov ecx, 0x129cd048
push eax
call fcn.128e0720
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, 0x129cd048
call fcn.128e0700
push ebp
push str.QueryBaiduNetDiskUpDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call fcn.12908640
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 2
call fcn.12908640
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 1
call fcn.12908640
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.12908640
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.12908640
mov eax, ebp
jmp 0x128fab60
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 8