Function at 0x40afc0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
lea eax, [esp + 0x10]
mov edx, str.sqlmin.dll
push eax
mov ecx, dword [esi]
xor edi, edi
call fcn.0040b440
test eax, eax
je 0x40b012
push str.bufferPoolInfo
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x40b012
sub ecx, dword [esp + 0x10]
je 0x40b012
push 0x30
lea eax, [esi + 0x1710c]
push eax
push ecx
mov ecx, esi
call fcn.00405c60
mov edi, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov edx, str.sqldk.dll
xor ebx, ebx
call fcn.0040b440
test eax, eax
je 0x40b057
push str.memMgrInfo
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x40b057
sub ecx, dword [esp + 0x10]
je 0x40b057
push 0xac
lea eax, [esi + 0x17144]
push eax
push ecx
mov ecx, esi
call fcn.00405c60
mov ebx, eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
and ebx, edi
mov edx, str.xlogsrv.exe
push eax
xor edi, edi
call fcn.0040b440
test eax, eax
je 0x40b09b
push str.g_xLogBrokerInfo
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x40b09b
sub ecx, dword [esp + 0x10]
je 0x40b09b
push 8
lea eax, [esi + 0x1713c]
push eax
push ecx
mov ecx, esi
call fcn.00405c60
mov edi, eax
or ebx, edi
jne 0x40b0e4
lea eax, [esi + 0xec94]
push eax
lea ecx, [esi + 0x17224]
call 0x405370
movzx ebx, al
test al, al
je 0x40b417
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
mov dword [esi + 0x17220], ecx
mov dword [esi + 0x170f4], 1
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov ecx, dword [esi + 0x17124]
mov dword [esi + 0x17220], 0x2000
test ecx, ecx
je 0x40b129
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esi + 0x170f8]
push eax
push ecx
mov ecx, esi
call fcn.00405b50
test eax, eax
je 0x40b129
push eax
push str.Can_not_read_m_pBuf_content:__x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 0x17148]
test ecx, ecx
je 0x40b164
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esi + 0x170fc]
push eax
push ecx
mov ecx, esi
call fcn.00405b50
test eax, eax
je 0x40b164
push eax
push str.Can_not_read_m_BucketsPtr_content:__x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 0x1714c]
test ecx, ecx
je 0x40b19f
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esi + 0x17104]
push eax
push ecx
mov ecx, esi
call fcn.00405b50
test eax, eax
je 0x40b19f
push eax
push str.Can_not_read_m_LookupTablePtr_content:__x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 0x171a0]
test ecx, ecx
je 0x40b1da
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esi + 0x17108]
push eax
push ecx
mov ecx, esi
call fcn.00405b50
test eax, eax
je 0x40b1da
push eax
push str.Can_not_read_m_64KBlockArrayPtr_content:__x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 0x17150]
test ecx, ecx
je 0x40b215
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esi + 0x17100]
push eax
push ecx
mov ecx, esi
call fcn.00405b50
test eax, eax
je 0x40b215
push eax
push str.Can_not_read_m_SmallestBlockAllocatorSizePtr_content:__x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 0x17100]
test ecx, ecx
je 0x40b25a
mov eax, dword [esi + 0x17128]
xor edx, edx
div ecx
xor ecx, ecx
mov edx, 0x10
mov edi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414ef8
add esp, 4
mov dword [esi + 0x17258], eax
mov dword [esi + 0x1725c], 0
mov dword [esi + 0x17260], edi
mov eax, dword [esi + 0x171d0]
test eax, eax
je 0x40b299
lea ecx, [esp + 0xc]
push ecx
push 4
lea edi, [esi + 0x17268]
mov ecx, esi
push edi
push eax
call fcn.00405b50
test eax, eax
je 0x40b299
push eax
push str.Can_not_read_m_pageExclusionBitmapPtr_content:__x
push 1
push 0x429048
mov dword [edi], 0
call fcn.00404d90
add esp, 0x10
mov ecx, dword [esi + 0x171d4]
test ecx, ecx
je 0x40b2dc
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esi + 0x1726c]
push eax
push ecx
mov ecx, esi
call fcn.00405b50
test eax, eax
je 0x40b2dc
push eax
push str.Can_not_read_m_pageExclusionBitmapSizePtr_content:__x
push 1
push 0x429048
mov dword [esi + 0x17268], 0
call fcn.00404d90
add esp, 0x10
cmp dword [esi + 0x17268], 0
je 0x40b317
mov ecx, esi
call 0x40ac90
test al, al
jne 0x40b303
push str.Failed_to_initialize_bitmap_information.
mov dword [esi + 0x17268], 0
push 1
jmp 0x40b30a
push str.Page_Exclusion_Bitmap_was_successfully_initialized.
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, dword [esi + 0x17174]
mov ecx, esi
add eax, dword [esi + 0x171c4]
xor edi, edi
push eax
call fcn.00405c60
test eax, eax
je 0x40b364
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b364
push 4
lea eax, [esp + 0x14]
inc edi
push eax
mov eax, dword [esi + 0x17174]
add eax, ecx
mov ecx, esi
push eax
call fcn.00405c60
test eax, eax
jne 0x40b340
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414ef8
add esp, 4
mov dword [esi + 0x17250], eax
lea eax, [esp + 0x10]
mov ecx, esi
xor edi, edi
push 4
push eax
mov eax, dword [esi + 0x17174]
add eax, dword [esi + 0x171c4]
push eax
call fcn.00405c60
test eax, eax
je 0x40b3f5
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b3f5
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x171c8]
add eax, ecx
mov ecx, esi
push eax
call fcn.00405c60
test eax, eax
je 0x40b3f5
mov ecx, dword [esi + 0x17250]
mov eax, dword [esp + 0x14]
push 4
mov dword [ecx + edi*4], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x17174]
mov ecx, esi
add eax, dword [esp + 0x18]
inc edi
push eax
call fcn.00405c60
test eax, eax
jne 0x40b3a7
mov ecx, dword [esi + 0x17250]
mov eax, dword [esi + 0x171cc]
mov dword [ecx + edi*4], eax
lea eax, [edi + 1]
mov dword [esi + 0x17254], eax
mov dword [esi + 0x170f4], ebx
test ebx, ebx
jne 0x40b42b
push str.Unable_to_read_remote_buffer_pool_or_memory_manager_information_struct_or_list_of_ranges_to_exclude
push 1
push 0x429048
call fcn.00404d90
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x30
ret