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

Disassembly:
push 0xffffffffffffffff
push 0x101710b9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.10033b60
mov ebx, dword [esp + 0x2c]
mov dword [ebp], 0x101865e0
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.1004d260
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], 0x10186784
push ecx
mov dword [ebp + 0x44], 0x1018458c
call edi
mov byte [ebp + 0x60], 0
lea esi, [ebp + 0x64]
lea edx, [esi + 8]
mov dword [esi], 0x10186784
push edx
mov dword [esi + 4], 0x1018458c
call edi
lea edi, [ebp + 0x88]
lea eax, [edi + 8]
mov dword [edi], 0x10186784
push eax
mov dword [edi + 4], 0x1018458c
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], 0x1018458c
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp + 0xd0]
call fcn.10005a20
mov dword [ebp + 0xd0], 1
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xd8], eax
mov cx, word [ebx + 0x10]
push 0
mov byte [esp + 0x24], 6
mov word [ebp + 0xdc], cx
call fcn.10149d08
mov dword [esp + 0x30], eax
add esp, 4
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 8]
push eax
mov dword [esi + 0x20], edx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp esi, edi
je 0x1007dcb4
lea eax, [esi + 8]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x20]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [esp + 0x30]
push esi
mov dword [edi + 0x20], edx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [esp + 0x38], 4
setae al
cmp dword [ebx + 0x1c], 1
jne 0x1007dcfb
test al, al
je 0x1007dcfb
push 0x128
call fcn.1014979e
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x20], 7
je 0x1007dd35
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x38]
push 5
push 0x64
push edx
push ecx
push ebp
mov ecx, eax
call fcn.10084330
jmp 0x1007dd37
push 0x148
call fcn.1014979e
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x20], 8
je 0x1007dd35
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x3c]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x3c]
push 5
push 0x64
push edx
push ecx
push ebp
mov ecx, eax
call fcn.1007d510
jmp 0x1007dd37
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.1002cb70
mov dword [ebp + 0x158], 0
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 0x18