Function at 0x1002d640
Capabilities:
Check os version
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037ddf
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100ae134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x30], 0
lea eax, [ebx + 0x30]
jne 0x1002d689
push 0
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10039b38
cmp dword [ebx + 0x14], 0
lea eax, [ebx + 0x14]
jne 0x1002d6a6
push 0
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10039b38
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x10039b79
push 0x28
push eax
push dword [0x100af320]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x10039b68
mov dword [ebx + 0x38], 0xa
lea eax, [ebx + 0x384]
mov dword [ebx + 0x3c], 0xa
push 0
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10039bd0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x380], eax
test eax, eax
je 0x10039be2
push 0x1002
push 0
push dword [0x100af320]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0x398], eax
push 0x1000
push 0
push dword [0x100af320]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0x39c], eax
push 0x101
push 0
push dword [0x100af320]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0x3a0], eax
cmp dword [ebx + 0x398], 0
je 0x10039d72
mov edi, dword [ebx + 0x39c]
test edi, edi
je 0x10039d72
test eax, eax
je 0x10039d72
xor eax, eax
stosd dword es:[edi], eax
push 0x190
push 0
push dword [0x100af320]
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x398]
mov byte [eax + 0x1000], 0
mov eax, dword [ebx + 0x398]
mov byte [eax + 0x1001], 0
mov eax, dword [ebx + 0x3a0]
mov byte [eax + 0xff], 0
mov eax, dword [ebx + 0x3a0]
mov byte [eax + 0x100], 0
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10039c14
lea ecx, [ebx + 0x1c]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], sym.SQLOLEDB.dll_DllRegisterServer
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [ecx + 8], esi
mov eax, dword [esi + 8]
test eax, eax
jne 0x10039c0c
mov dword [esi], section..text
xor eax, eax
mov dword [esi + 0x30], 0xa
mov dword [esi + 0x34], 0xa
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov word [esi + 0x3c], ax
mov dword [esi + 0x9e], eax
mov dword [esi + 0x98], eax
mov word [esi + 0x9c], ax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb4], eax
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 3
call dword [sym.imp.MSDATL3.dll_public:_void___thiscall_CExtBuffer::constructor_void_]
xor eax, eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
lea edi, [esi + 0x80]
mov dword [esi + 0x28], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 0x54], al
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x50], 0x1000000
mov dword [esi + 0xf8], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0xffffffff
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], eax
mov word [esi + 0x108], ax
mov dword [esi + 0x10c], 0xffffffff
mov dword [esi + 0x110], 0xffffffff
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x120], 1
mov dword [esi + 0x124], 1
mov dword [esi + 0x12c], eax
mov dword [esi + 0x128], eax
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x184], eax
mov byte [esi + 0x188], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x50], esi
test esi, esi
je 0x10039d62
lea eax, [esi + 0x18]
push 0
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10039d42
lea eax, [esi + 0x1c]
push 0
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
je 0x10039d42
push 0x100
push 0x200
push 0
push 1
lea ecx, [esi + 0xb8]
call dword [sym.imp.MSDATL3.dll_public:_int___thiscall_CExtBuffer::FInit_unsigned_long_int__void___unsigned_long_int__unsigned_long_int_]
test eax, eax
je 0x10039c1b
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x10039c43
push 0x28
push eax
push dword [0x100af320]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [esi + 0x38], eax
test eax, eax
je 0x10039c32
mov dword [esi + 0x30], 0xa
mov dword [esi + 0x34], 0xa
mov eax, 0x1000
mov esi, dword [ebp + 8]
mov dword [ebx + 0x60], 0
mov word [ebx + 0x3c8], ax
mov dword [ebx + 0x3c4], 0xff
test esi, esi
jne 0x10039c9d
mov dword [ebx + 0x36c], eax
mov eax, 0xf
mov word [ebx + 0x378], ax
or dword [ebx + 0x54], 0x280
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test byte [0x100af360], 2
je 0x10039d99
push pe_nt_image_headers32
jmp 0x10039b51
push 0xf5
mov edx, 0x10011760
mov ecx, 0x8007000e
call fcn.10036de6
add esp, 4
jmp 0x10039d99
test byte [0x100af360], 2
je 0x10039d99
push 0x39
jmp 0x10039ba2
cmp dword [ebx + 0x38], 0xa
je 0x1002d6d5
push 0x28
push eax
call dword [sym.imp.MSDART.DLL_mpRealloc]
add esp, 8
test eax, eax
jne 0x10039bc8
test byte [0x100af360], 2
je 0x10039d99
push 0x48
mov edx, 0x10004cbc
mov ecx, 0x8007000e
call fcn.10036de6
add esp, 4
test byte [0x100af360], 2
je 0x10039d99
push 0xee
jmp 0x10039b51
mov dword [ebx + 0x40], eax
jmp 0x1002d6ce
test byte [0x100af360], 2
je 0x10039d99
jmp 0x10039b4c
test byte [0x100af360], 2
je 0x10039c02
push 0xfc
mov edx, 0x10011760
mov ecx, 0x80004005
call fcn.10036de6
add esp, 4
mov eax, 0x80004005
jmp 0x1002dac9
mov dword [eax + 4], esi
jmp 0x1002d82f
xor esi, esi
jmp 0x1002d9ee
test byte [0x100af360], 2
je 0x10039d92
push 0xcb
jmp 0x10039d50
test byte [0x100af360], 2
je 0x10039d92
push 0x39
jmp 0x10039c6c
cmp dword [esi + 0x30], 0xa
je 0x1002da7f
push 0x28
push eax
call dword [sym.imp.MSDART.DLL_mpRealloc]
add esp, 8
test eax, eax
jne 0x10039c95
test byte [0x100af360], 2
je 0x10039d92
push 0x48
mov edx, 0x10004cbc
mov ecx, 0x8007000e
call fcn.10036de6
add esp, 4
test byte [0x100af360], 2
je 0x10039d92
push 0xd2
jmp 0x10039d50
mov dword [esi + 0x38], eax
jmp 0x1002da78
lea eax, [esi + 0x64]
mov edx, 0x81
push eax
lea ecx, [ebx + 0x64]
call fcn.100474ce
test byte [0x100af360], 2
je 0x10039ccb
push 0x138
mov edx, 0x10011760
mov ecx, eax
call fcn.10036de6
add esp, 4
lea eax, [esi + 0x166]
mov edx, 0x81
push eax
lea ecx, [ebx + 0x166]
call fcn.100474ce
test byte [0x100af360], 2
je 0x10039cff
push 0x13c
mov edx, 0x10011760
mov ecx, eax
call fcn.10036de6
add esp, 4
mov eax, dword [esi + 0x36c]
mov dword [ebx + 0x36c], eax
mov ax, word [esi + 0x378]
mov word [ebx + 0x378], ax
mov eax, dword [esi + 0x370]
mov dword [ebx + 0x370], eax
mov eax, dword [esi + 0x374]
mov dword [ebx + 0x374], eax
mov eax, dword [esi + 0x37c]
mov dword [ebx + 0x37c], eax
jmp 0x1002dac0
test byte [0x100af360], 2
je 0x10039d92
push 0xc4
mov edx, 0x10004ea0
mov ecx, 0x8007000e
call fcn.10036de6
add esp, 4
test byte [0x100af360], 2
je 0x10039d92
push 0x124
jmp 0x10039d80
test byte [0x100af360], 2
je 0x10039d92
push 0x113
mov edx, 0x10011760
mov ecx, 0x8007000e
call fcn.10036de6
add esp, 4
mov ecx, ebx
call fcn.1003bfe4
mov eax, 0x8007000e
jmp 0x1002dac9