Function at 0x1247a480
Capabilities:
Get file attributes
Get number of processors
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x12505e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x20], ecx
je 0x1247aa26
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x1247aa26
mov eax, dword [0x1250f854]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], eax
lea eax, [esi + 0x48]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x3c], 1
call fcn.12486370
mov ecx, dword [esi + 8]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x44], 2
call fcn.12486110
lea eax, [esp + 0x20]
push eax
call fcn.12459800
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call fcn.12486ca0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.12486b10
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x48]
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 8]
push edi
push edi
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push str.Query115UpDownHistory________wstrFilePath:__s__dwType:__d__nUpDownLastTime__I64u___updownType_:__d___dwUpDownType_:__d____d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x30
mov ecx, 0x12547908
call fcn.1245fb40
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x12547908
call fcn.1245fcf0
test eax, eax
jne 0x1247a9db
push 0x12547904
lea ecx, [esp + 0x4c]
call fcn.12486370
cmp edi, 1
mov byte [esp + 0x38], 4
jne 0x1247a5c3
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push str.SELECT__s__s_FROM__s_WHERE__s____8
push ecx
call fcn.12489a90
add esp, 0x18
jmp 0x1247a5f7
cmp edi, 2
jne 0x1247a5f7
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x68]
push str.SELECT__s__s__s__s_FROM__s_WHERE___s____8_or__s____9__and__s__1
push eax
call fcn.12489a90
add esp, 0x28
mov ecx, dword [esp + 0x48]
push ecx
push str.Query115UpDownHistory___s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 0x44]
push 0
push edx
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x12547908
call fcn.1245fd10
test eax, eax
jne 0x1247a995
cmp edi, 1
jne 0x1247a79b
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x44]
push edx
push eax
push 8
push ecx
mov ecx, 0x12547908
call fcn.1245fd40
mov edx, dword [esp + 0x44]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247a98e
mov eax, dword [esp + 0x44]
push 0
push eax
mov ecx, 0x12547908
call fcn.1245fe10
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, 0x12547908
mov edi, eax
mov ebp, edx
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x14]
call fcn.12486d90
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x1247a779
push str.http:__115.com_
lea ecx, [esp + 0x44]
call fcn.12486d90
mov eax, dword [esp + 0x10]
push eax
call fcn.1246b8b0
add esp, 4
lea ecx, [esp + 0x40]
lea edx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.12487280
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.12486ca0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.12486b10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push ebp
push edi
push 1
push str.Query115UpDownHistory_Add_Type__d__iTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
add esp, 0x24
lea ebx, [esi + 0x250]
mov ecx, 0x1254d8a0
push str.115chrome
push ebx
push edx
push eax
push ebp
push edi
push 1
call fcn.1247dda0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1247a779
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.12486370
mov ecx, dword [esp + 0x24]
push ebp
push edi
lea edx, [esp + 0x1c]
push 1
lea eax, [esp + 0x50]
push edx
push eax
call fcn.1247aa40
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, 0x12547908
call fcn.1245fda0
cmp eax, 0x64
je 0x1247a674
mov ebx, 1
jmp 0x1247a9af
cmp edi, 2
jne 0x1247a98e
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x44]
push edx
push eax
push 8
push ecx
mov ecx, 0x12547908
call fcn.1245fd40
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x44]
push edx
push eax
push 9
push ecx
mov ecx, 0x12547908
call fcn.1245fd40
mov edx, dword [esp + 0x44]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
jne 0x1247a98e
mov eax, dword [esp + 0x44]
push 0
push eax
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x44]
call fcn.12486d90
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x1c]
call fcn.12486370
mov edx, dword [esp + 0x44]
push 2
push edx
mov ecx, 0x12547908
mov byte [esp + 0x40], 6
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x14]
call fcn.12486d90
mov eax, dword [esp + 0x44]
push 3
push eax
mov ecx, 0x12547908
call fcn.1245fdc0
mov ecx, dword [esp + 0x40]
mov edi, eax
mov ebp, edx
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1247a8a1
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.12487cc0
cmp eax, 0xffffffff
je 0x1247a8a1
inc eax
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.12489250
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 7
call fcn.12486ca0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 6
call fcn.12486b10
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1247a968
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1246b8b0
add esp, 4
lea edx, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.12487280
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 8
call fcn.12486ca0
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 6
call fcn.12486b10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
push ecx
push edx
push ebp
push edi
push 2
push str.Query115UpDownHistory_Add_Type__d__iTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
add esp, 0x24
lea ebx, [esi + 0x250]
push str.115chrome
push ebx
push eax
push ecx
push ebp
push edi
push 2
mov ecx, 0x1254d8a0
call fcn.1247dda0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1247a968
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebx
call fcn.12486370
push ebp
push edi
lea eax, [esp + 0x1c]
push 2
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.1247aa40
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
call fcn.12486b10
mov edx, dword [esp + 0x44]
mov ecx, 0x12547908
push edx
call fcn.1245fda0
cmp eax, 0x64
je 0x1247a7ee
mov ebx, 1
jmp 0x1247a9af
push eax
push str.Query115UpDownHistory_sqlite3_prepare16_v2__Failed__nPreUpDownStmt:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 2
call fcn.12486b10
mov eax, dword [esp + 0x44]
mov ecx, 0x12547908
push eax
call fcn.1245fee0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, 0x12547908
call fcn.1245fec0
push ebx
push str.QueryBaiduNetDiskUpDownHistory____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.12486b10
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.12486b10
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.12486b10
mov eax, ebx
jmp 0x1247aa28
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0xc