Function at 0x128d8ef0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x129889a8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
cmp edi, ebp
je 0x128d9280
mov esi, dword [esp + 0x2c]
cmp esi, ebp
je 0x128d9280
cmp dword [esp + 0x30], ebp
je 0x128d9280
mov eax, dword [0x12993aec]
push ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
mov byte [esp + 0x24], 1
push eax
push str.IsMatchMessFromID________dwBroHistory:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [0x12993aec]
add esp, 0x14
mov dword [esp + 0x2c], ecx
mov bl, 2
push str.SELECT
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.12907d40
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 3
call fcn.129092f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12908640
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.12909290
push 0x129a9fd0
lea ecx, [esp + 0x14]
call fcn.12907d40
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
push ecx
lea ecx, [esp + 0x30]
call fcn.129092f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12908640
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x2c]
push edx
call fcn.12909290
push 0x129a9fd0
lea ecx, [esp + 0x14]
call fcn.12907d40
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 5
call fcn.129092f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12908640
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.12909290
push str._FROM
lea ecx, [esp + 0x14]
call fcn.12907d40
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 6
call fcn.129092f0
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
call fcn.12908640
mov eax, dword [esi + 4]
lea ecx, [esp + 0x2c]
push eax
call fcn.12909290
push str._WHERE__
lea ecx, [esp + 0x14]
call fcn.12907d40
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 7
push ecx
lea ecx, [esp + 0x30]
call fcn.129092f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12908640
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x2c]
push edx
call fcn.12909290
push str.______AND__
lea ecx, [esp + 0x14]
call fcn.12907d40
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 8
call fcn.129092f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12908640
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.12909290
push str.___1_
lea ecx, [esp + 0x14]
call fcn.12907d40
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 9
call fcn.129092f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12908640
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push str.IsMatchMessFromID_wstrSQL__s_Id__lu_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
add esp, 0x1c
lea eax, [esp + 0x30]
push ebp
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x129cd048
call fcn.128e0550
test eax, eax
jne 0x128d91fb
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x30]
push eax
push ecx
push 1
push edx
mov ecx, 0x129cd048
call fcn.128e0580
mov eax, dword [esp + 0x30]
mov ecx, 0x129cd048
push eax
call fcn.128e05e0
cmp eax, 0x64
jne 0x128d9215
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ebp
push edx
mov dword [ecx], 1
mov ecx, 0x129cd048
call fcn.128e0630
push eax
lea ecx, [esp + 0x38]
call fcn.12907ea0
mov eax, dword [esp + 0x34]
add edi, 0x460
push 0x103
push eax
push edi
mov byte [esp + 0x30], 0xa
call fcn.12922f4a
add esp, 0xc
test eax, eax
jne 0x128d91cd
mov ebp, 1
mov ecx, dword [esp + 0x34]
push ecx
push edi
push str.IsMatchMessFromID_Url__s___s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], bl
call fcn.12908640
jmp 0x128d9215
push eax
push str.IsMatchMessFromID_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.12908640
mov edx, dword [esp + 0x30]
mov ecx, 0x129cd048
push edx
call fcn.128e0720
push ebp
push str.IsMatchMessFromID____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.12908640
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.12908640
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret