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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12504c38
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 0x12458e70
mov esi, dword [esp + 0x2c]
cmp esi, ebp
je 0x12458e70
cmp dword [esp + 0x30], ebp
je 0x12458e70
mov eax, dword [0x1250f854]
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 0x12547fec
call fcn.12478010
mov ecx, dword [0x1250f854]
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.12486210
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 3
call fcn.124877c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12486b10
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.12487760
push 0x12525a60
lea ecx, [esp + 0x14]
call fcn.12486210
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
push ecx
lea ecx, [esp + 0x30]
call fcn.124877c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12486b10
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x2c]
push edx
call fcn.12487760
push 0x12525a60
lea ecx, [esp + 0x14]
call fcn.12486210
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 5
call fcn.124877c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12486b10
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.12487760
push str._FROM
lea ecx, [esp + 0x14]
call fcn.12486210
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 6
call fcn.124877c0
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
call fcn.12486b10
mov eax, dword [esi + 4]
lea ecx, [esp + 0x2c]
push eax
call fcn.12487760
push str._WHERE__
lea ecx, [esp + 0x14]
call fcn.12486210
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 7
push ecx
lea ecx, [esp + 0x30]
call fcn.124877c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12486b10
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x2c]
push edx
call fcn.12487760
push str.______AND__
lea ecx, [esp + 0x14]
call fcn.12486210
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x28], 8
call fcn.124877c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12486b10
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.12487760
push str.___1_
lea ecx, [esp + 0x14]
call fcn.12486210
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 9
call fcn.124877c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.12486b10
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 0x12547fec
call fcn.12478010
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, 0x12547908
call fcn.1245fd10
test eax, eax
jne 0x12458deb
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, 0x12547908
call fcn.1245fd40
mov eax, dword [esp + 0x30]
mov ecx, 0x12547908
push eax
call fcn.1245fda0
cmp eax, 0x64
jne 0x12458e05
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ebp
push edx
mov dword [ecx], 1
mov ecx, 0x12547908
call fcn.1245fdf0
push eax
lea ecx, [esp + 0x38]
call fcn.12486370
mov eax, dword [esp + 0x34]
add edi, 0x460
push 0x103
push eax
push edi
mov byte [esp + 0x30], 0xa
call fcn.1249fc0b
add esp, 0xc
test eax, eax
jne 0x12458dbd
mov ebp, 1
mov ecx, dword [esp + 0x34]
push ecx
push edi
push str.IsMatchMessFromID_Url__s___s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], bl
call fcn.12486b10
jmp 0x12458e05
push eax
push str.IsMatchMessFromID_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.12486b10
mov edx, dword [esp + 0x30]
mov ecx, 0x12547908
push edx
call fcn.1245fee0
push ebp
push str.IsMatchMessFromID____bRet:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.12486b10
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.12486b10
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