Function at 0x5906f800
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59157408
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
cmp edi, ebp
jne 0x5906f837
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea eax, [edi + 0x20]
push esi
push eax
lea ecx, [esp + 0x24]
xor esi, esi
mov dword [esp + 0x10], ebp
call fcn.590a6ec0
mov eax, dword [0x591ae1c8]
mov dword [esp + 0x30], ebp
cmp eax, ebp
je 0x5906f87a
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
push ecx
push edx
push str.QueryDataFromFile__________d___s_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x18
mov ecx, 0x591ae0e8
call fcn.59002150
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, 0x591ae0e8
call fcn.59002330
cmp eax, ebp
jne 0x5906fd02
mov eax, dword [edi + 4]
dec eax
je 0x5906fb81
dec eax
jne 0x5906fceb
lea edx, [esp + 0x14]
push 2
push edx
mov dword [esp + 0x18], ebp
call fcn.5906cd70
add esp, 8
mov eax, dword [0x591ae1c8]
mov byte [esp + 0x30], 2
cmp eax, ebp
je 0x5906f900
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x1c]
push eax
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str.QueryDataFromFile_wstrSql__s___d___I64u_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x24
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebp
je 0x5906fb73
lea edx, [esp + 0x10]
push ebp
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, 0x591ae0e8
call fcn.59002350
cmp eax, ebp
jne 0x5906fb4c
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x10]
push ebx
push ecx
push edx
push 1
push eax
mov ecx, 0x591ae0e8
call fcn.59002380
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x591ae0e8
call fcn.590023e0
cmp eax, 0x64
jne 0x5906fb13
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push edx
push eax
push ecx
push edi
call fcn.5906e9d0
add esp, 0x10
test eax, eax
je 0x5906faef
cmp dword [esp + 0x20], ebp
je 0x5906faef
mov ecx, dword [0x591af334]
mov ebx, ecx
cmp ebx, ecx
mov dword [esp + 0x28], ebx
jl 0x5906fae3
mov eax, dword [0x591af330]
lea ebp, [ebx + 1]
xor esi, esi
cmp ebp, esi
jne 0x5906f9d7
cmp eax, esi
je 0x5906f9c6
push eax
mov dword [esp + 0x2c], ecx
call fcn.5913e209
add esp, 4
mov dword [0x591af330], esi
mov dword [0x591af338], esi
mov dword [0x591af334], esi
jmp 0x5906fae1
cmp eax, esi
jne 0x5906fa08
lea edx, [ebp*4]
push edx
call fcn.5913e1e0
push ebp
push eax
mov dword [0x591af330], eax
call fcn.59071450
add esp, 0xc
mov dword [0x591af338], ebp
mov dword [0x591af334], ebp
jmp 0x5906fae1
mov esi, dword [0x591af338]
cmp ebp, esi
jg 0x5906fa45
cmp ecx, ebp
jge 0x5906fa32
mov edx, ebp
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.59071450
add esp, 8
mov dword [0x591af334], ebp
jmp 0x5906fae1
jle 0x5906fa3a
sub ecx, ebp
mov dword [esp + 0x28], ecx
mov dword [0x591af334], ebp
jmp 0x5906fae1
mov eax, dword [0x591af33c]
test eax, eax
jne 0x5906fa71
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5906fa65
mov eax, 4
jmp 0x5906fa71
cmp eax, 0x400
jle 0x5906fa71
mov eax, 0x400
add eax, esi
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x5906fa7f
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4]
push edx
call fcn.5913e1e0
mov ecx, dword [0x591af334]
mov esi, dword [0x591af330]
mov ebx, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x591af334]
mov ecx, ebp
sub ecx, eax
lea edx, [ebx + eax*4]
push ecx
push edx
call fcn.59071450
mov eax, dword [0x591af330]
push eax
call fcn.5913e209
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
mov dword [0x591af330], ebx
mov ebx, dword [esp + 0x38]
add esp, 0x10
mov dword [0x591af334], ebp
mov dword [0x591af338], ecx
xor ebp, ebp
mov eax, dword [0x591af330]
mov edx, dword [esp + 0x20]
mov dword [eax + ebx*4], edx
cmp dword [0x591af334], 0xc8
jge 0x5906fb13
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x591ae0e8
call fcn.590023e0
cmp eax, 0x64
je 0x5906f95f
mov eax, dword [esp + 0x14]
pop ebx
cmp eax, ebp
je 0x5906fb2b
push eax
mov ecx, 0x591ae0e8
call fcn.59002590
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0xc]
mov esi, 1
push edx
push edi
call fcn.5906c4c0
add esp, 8
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
jmp 0x5906fce6
cmp dword [0x591ae1c8], ebp
je 0x5906fb73
push eax
mov eax, dword [esp + 0x18]
push eax
push str.QueryDataFromFile_sqlite3_prepare16_v2__Failed__wstrSql__s__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x18
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
jmp 0x5906fce6
lea ecx, [esp + 0x14]
push 1
push ecx
mov dword [esp + 0x40], ebp
call fcn.5906cd70
add esp, 8
mov eax, dword [0x591ae1c8]
mov byte [esp + 0x30], 1
cmp eax, ebp
je 0x5906fbd0
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push str.QueryDataFromFile_wstrSql__s___d___I64u_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x24
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebp
je 0x5906fcdd
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ebp
push ecx
push 0xffffffffffffffff
push eax
push edx
mov ecx, 0x591ae0e8
call fcn.59002350
cmp eax, ebp
jne 0x5906fcbb
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x38]
push eax
push ecx
push 1
push edx
mov ecx, 0x591ae0e8
call fcn.59002380
mov eax, dword [esp + 0x38]
mov ecx, 0x591ae0e8
push eax
call fcn.590023e0
cmp eax, 0x64
jne 0x5906fc97
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push ecx
push edx
push eax
push edi
call fcn.5906e9d0
add esp, 0x10
test eax, eax
je 0x5906fc77
cmp dword [esp + 0x1c], ebp
je 0x5906fc77
mov esi, dword [0x591af334]
cmp esi, esi
jl 0x5906fc6a
lea ecx, [esi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, 0x591af330
call fcn.59071320
mov edx, dword [0x591af330]
mov eax, dword [esp + 0x1c]
mov dword [edx + esi*4], eax
cmp dword [0x591af334], 0xc8
jge 0x5906fc97
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, 0x591ae0e8
call fcn.590023e0
cmp eax, 0x64
je 0x5906fc2a
mov edx, dword [esp + 0x38]
mov ecx, 0x591ae0e8
push edx
call fcn.59002590
mov eax, dword [esp + 0xc]
mov esi, 1
push eax
push edi
call fcn.5906c4c0
add esp, 8
jmp 0x5906fcdd
cmp dword [0x591ae1c8], ebp
je 0x5906fcdd
push eax
push str.QueryDataFromFile_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
call fcn.590a7660
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x5906fd02
push eax
mov ecx, 0x591ae0e8
call fcn.59002570
mov dword [esp + 0xc], ebp
push edi
call fcn.5906f710
mov eax, dword [0x591ae1c8]
add esp, 4
cmp eax, ebp
je 0x5906fd2e
push esi
push str.QueryDataFromFile____bRet__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.590a7660
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret