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

Disassembly:
push 0xffffffffffffffff
push 0x1004b788
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10077990]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10077990]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov edi, dword [esp + 0x84]
mov dword [esp + 0x14], 0
push 0
push 0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x34]
mov ebp, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov esi, dword [edi + 8]
add esi, 0xf8
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 8]
mov dword [esp + 0x7c], 0
mov ecx, dword [eax + 0x14]
add ecx, 0xc
cmp dword [eax + 0x60], 0
mov dword [esp + 0x1c], ecx
jne 0x10006c14
push eax
call fcn.10009550
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 8]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [edx + 0x3c]
test al, 0x20
jne 0x10006c30
mov ebx, 0x80040e0c
jmp 0x10006f45
cmp dword [edx + 0x50], 0
jbe 0x10006c47
test eax, 0x100
jne 0x10006c47
mov ebx, 0x80040e05
jmp 0x10006f45
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x28]
push eax
push 0x102
call fcn.10015ba0
mov edx, dword [edi + 8]
mov ebx, eax
test byte [edx + 0x3c], 0x10
jne 0x10006cfe
cmp dword [esp + 0x28], 1
jne 0x10006cfe
mov edx, dword [edx + 0x4c]
test edx, edx
je 0x10006c94
mov eax, dword [0x1007a1e0]
test eax, eax
je 0x10006c8a
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [edi + 8]
mov dword [eax + 0x4c], 0
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x6c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006ca0
mov eax, dword [0x1007a1e0]
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 2]
mov ecx, dword [eax]
push edx
push eax
mov dword [esp + 0x20], edx
call dword [ecx + 0xc]
mov ecx, dword [edi + 8]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jne 0x10006ce0
mov ebx, 0x8007000e
jmp 0x10006f45
push dword [eax + 0x6c]
push dword [esp + 0x1c]
push ecx
call fcn.10003fe0
mov eax, dword [edi + 8]
or dword [eax + 0x3c], 0x10
mov eax, dword [edi + 8]
mov dword [eax + 0x48], 1
mov eax, dword [edi + 8]
cmp dword [eax + 0x48], 1
jne 0x10006d2c
or dword [eax + 0x3c], 0x10
lea eax, [esp + 0x2c]
push eax
push 0x38
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 8]
push dword [eax + 0x4c]
push dword [esp + 0x34]
push ebp
call sub.msjet40.dll_Ordinal_310
jmp 0x10006e77
test byte [eax + 0x3c], 0x10
jne 0x10006e54
add eax, 0x64
push eax
push 0x10051494
push dword [esp + 0x2c]
push ebp
call sub.msjet40.dll_Ordinal_302
mov dword [esp + 0x14], eax
cmp eax, 0xfffff88d
je 0x10006f0f
cmp eax, 0xfffffc0d
je 0x10006f08
test eax, eax
je 0x10006d71
mov ebx, 0x80004005
jmp 0x10006f45
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0xfd
mov ecx, dword [ebx + 0xc]
call fcn.10015ba0
cmp dword [esp + 0x18], 1
jne 0x10006dd1
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x20]
push eax
push 0xf2
call fcn.10015190
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x18]
push eax
push 0x119
call fcn.10015ba0
cmp dword [esp + 0x18], 1
mov eax, 3
mov ebx, dword [esp + 0x20]
mov edx, 1
cmove edx, eax
xor eax, eax
test ebx, ebx
cmove edx, eax
jmp 0x10006dd7
mov ebx, dword [esp + 0x20]
xor edx, edx
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x6c]
mov ecx, eax
mov dword [esp + 0x30], eax
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006df0
sub ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
xor eax, eax
sar ecx, 1
push edx
test edx, edx
cmovne eax, ebx
push eax
mov eax, dword [edi + 8]
push ecx
push dword [esp + 0x40]
push dword [eax + 0x64]
push ebp
call fcn.10013210
mov ebx, eax
test ebx, ebx
js 0x10006f45
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x10006e39
call fcn.10039b10
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x34]
mov eax, dword [eax + 0x58]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x10006e54
call fcn.100397b0
mov eax, dword [edi + 8]
or dword [eax + 0x3c], 0x10
lea eax, [esp + 0x2c]
push eax
push 0x38
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 8]
push dword [eax + 0x64]
push dword [esp + 0x34]
push ebp
call sub.msjet40.dll_Ordinal_312
mov dword [esp + 0x14], eax
test eax, eax
jns 0x10006f16
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x14], 0
test ebx, ebx
jns 0x10006eda
mov eax, dword [edi + 8]
push 0
push 0x10068ce8
push ebx
mov eax, dword [eax + 0x34]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.100105d0
test ebx, ebx
jns 0x10006eda
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
je 0x10006eda
test byte [eax + 0x3c], 0x10
jne 0x10006eda
push ecx
push ebp
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
mov dword [eax + 0x64], 0xffffffff
test esi, esi
je 0x10006ee5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1003dba2
add esp, 0x6c
ret 8
mov ebx, 0x8007000e
jmp 0x10006f50
mov ebx, 0x80040e09
jmp 0x10006f50
mov ecx, dword [edi + 8]
lea eax, [esp + 0x38]
push eax
push ebp
add ecx, 0x54
call fcn.10088cb2
mov ebx, eax
test ebx, ebx
jns 0x10006f45
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x10006f45
push eax
push ebp
call sub.msjet40.dll_Ordinal_108
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x14], 0
je 0x10006e93
mov eax, dword [edi + 8]
push 0x10068ce8
push dword [esp + 0x18]
push ebx
push dword [eax + 0x34]
call fcn.10010bd0
jmp 0x10006eb0