Function at 0x10085cd0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1018333e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.1002acb0
mov ebx, dword [esp + 0x2c]
mov dword [ebp], 0x10198bc8
lea edi, [ebp + 4]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x14]
movzx edx, word [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [ebp + 0x28]
push edx
mov dword [esp + 0x30], 0
call fcn.100434c0
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp + 0x3c], eax
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x40], 0x10198870
push ecx
mov dword [ebp + 0x44], 0x101975e4
call edi
mov byte [ebp + 0x60], 0
lea esi, [ebp + 0x64]
lea edx, [esi + 8]
mov dword [esi], 0x10198870
push edx
mov dword [esi + 4], 0x101975e4
call edi
lea edi, [ebp + 0x88]
lea eax, [edi + 8]
mov dword [edi], 0x10198870
push eax
mov dword [edi + 4], 0x101975e4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x28]
lea edx, [ebp + 0xb4]
mov dword [ebp + 0xac], ecx
push edx
mov dword [ebp + 0xb0], 0x101975e4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp + 0xd0]
call fcn.10034320
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0x16c], ecx
movzx cx, byte [esp + 0x38]
mov dword [ebp + 0x168], eax
mov dword [ebp + 0xd0], 1
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0xd8], edx
mov ax, word [ebx + 0x10]
push 0
mov byte [esp + 0x24], 6
mov word [ebp + 0xdc], ax
mov word [ebp + 0xe4], cx
call fcn.1015812a
add esp, 4
lea ebx, [esi + 8]
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x38]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x20], edx
call ebx
cmp esi, edi
je 0x10085e5c
lea eax, [esi + 8]
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x20]
push ecx
mov dword [esp + 0x30], eax
call ebx
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x2c]
push esi
mov dword [edi + 0x20], edx
call ebx
push 0x1a0
call fcn.101582b6
add esp, 4
mov dword [esp + 0x38], eax
xor esi, esi
cmp eax, esi
mov byte [esp + 0x20], 7
je 0x10085ea4
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp + 0x16c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [ebp + 0x3c]
push ecx
push edx
push 5
push 0x64
lea ecx, [ebp + 4]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push ebp
mov ecx, eax
call fcn.100855a0
jmp 0x10085ea6
xor eax, eax
mov ecx, dword [ebp + 0xac]
mov dword [ebp + 0x24], eax
lea eax, [ebp + 0x28]
push eax
push ebp
mov byte [esp + 0x28], 6
call fcn.100231a0
mov dword [ebp + 0x160], esi
mov dword [ebp + 0x164], esi
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24