Function at 0x100408f0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10181961
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x101cd7b4]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1ac]
mov ebp, ecx
push 0xffffffffffffffff
push 0
lea esi, [ebp + 0x334]
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10005470
cmp dword [esp + 0x30], 0x10
jb 0x10040979
mov eax, dword [esp + 0x1c]
push eax
call fcn.10159534
add esp, 4
lea ecx, [ebp + 0x50]
push esi
call fcn.100f7687
mov ecx, dword [esp + 0x1b0]
mov dword [ebp + 0x15e8], ecx
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x100409a0
call fcn.1015988d
lea esp, [esp]
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x100409ad
call fcn.1015988d
cmp esi, edi
je 0x10040df6
cmp esi, dword [ebx + 8]
jb 0x100409bf
call fcn.1015988d
cmp dword [esi + 0x60], 2
jne 0x10040a67
cmp esi, dword [ebx + 8]
jb 0x100409e7
call fcn.1015988d
cmp esi, dword [ebx + 8]
jb 0x100409e7
call fcn.1015988d
cmp esi, dword [ebx + 8]
jb 0x100409e7
call fcn.1015988d
mov edx, dword [esi + 0x24]
movzx eax, byte [esi + 0x1c]
push edx
push eax
push esi
lea ecx, [esp + 0x110]
call fcn.1003bce0
cmp esi, dword [ebx + 8]
mov dword [esp + 0x1a4], 0
jb 0x10040a12
call fcn.1015988d
lea ecx, [esi + 0x28]
push ecx
lea edx, [esp + 0x178]
push edx
mov ecx, ebp
call fcn.1003b520
cmp esi, dword [ebx + 8]
jb 0x10040a2f
call fcn.1015988d
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x12c]
call fcn.10005470
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [ebp + 0x13c]
call fcn.1003c710
lea ecx, [esp + 0x104]
jmp 0x10040d7f
cmp byte [ebp + 0x1684], 0
je 0x10040a84
cmp esi, dword [ebx + 8]
jb 0x10040a7a
call fcn.1015988d
cmp byte [esi + 0x1c], 0
je 0x10040d8f
cmp esi, dword [ebx + 8]
jb 0x10040aa2
call fcn.1015988d
cmp esi, dword [ebx + 8]
jb 0x10040aa2
call fcn.1015988d
cmp esi, dword [ebx + 8]
jb 0x10040aa2
call fcn.1015988d
movzx ecx, byte [esi + 0x1c]
mov eax, dword [esi + 0x24]
push eax
push ecx
push esi
lea ecx, [esp + 0x7c]
call fcn.1003bce0
cmp esi, dword [ebx + 8]
mov dword [esp + 0x1a4], 1
jb 0x10040aca
call fcn.1015988d
lea edx, [esi + 0x28]
push edx
lea eax, [esp + 0xe4]
push eax
mov ecx, ebp
call fcn.1003b520
cmp esi, dword [ebx + 8]
jb 0x10040ae7
call fcn.1015988d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
push ecx
lea ecx, [esp + 0x98]
call fcn.10005470
lea edx, [esp + 0x70]
push edx
lea ecx, [ebp + 0x50]
call fcn.100f7687
test al, al
je 0x10040da1
lea ecx, [ebp + 0x88]
call fcn.100f5c3f
cmp eax, 0x40
jb 0x10040ba7
lea eax, [ebp + 0x24]
lea edi, [eax + 4]
push edi
mov dword [esp + 0x44], 0x10199614
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x70]
push eax
lea ecx, [ebp + 0x40]
mov byte [esp + 0x1a8], 2
call fcn.10040840
cmp esi, dword [ebx + 8]
jb 0x10040b5c
call fcn.1015988d
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10005470
cmp dword [esp + 0x30], 0x10
jb 0x10040b93
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10159534
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x40], 0x10199600
jmp 0x10040d7b
mov eax, dword [ebp + 0x134]
mov eax, dword [eax]
add ebp, 0x130
mov ebx, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
nop
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x134]
add eax, 0x130
test ebp, ebp
je 0x10040bd7
cmp ebp, eax
je 0x10040bdc
call fcn.1015988d
cmp ebx, edi
je 0x10040cf3
test ebp, ebp
jne 0x10040bed
call fcn.1015988d
cmp ebx, dword [ebp + 4]
jne 0x10040bf7
call fcn.1015988d
push 0xffffffffffffffff
push 0
lea edi, [ebx + 0xc]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10005470
cmp dword [esp + 0x30], 0x10
jb 0x10040c31
mov edx, dword [esp + 0x1c]
push edx
call fcn.10159534
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10005470
cmp dword [esp + 0x30], 0x10
jb 0x10040c6c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10159534
add esp, 4
cmp ebx, dword [ebp + 4]
jne 0x10040c76
call fcn.1015988d
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x10040c88
lea eax, [esp + 0x74]
mov edx, dword [esp + 0x84]
push edx
push eax
mov eax, dword [edi + 0x14]
push eax
push 0
mov ecx, edi
call fcn.10029f20
test eax, eax
je 0x10040cb8
lea ecx, [esp + 0x38]
call fcn.100353a0
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
jmp 0x10040bc0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10005470
cmp dword [esp + 0x30], 0x10
jb 0x10040cf3
mov edx, dword [esp + 0x1c]
push edx
call fcn.10159534
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x134]
add eax, 0x130
test ebp, ebp
je 0x10040d0a
cmp ebp, eax
je 0x10040d0f
call fcn.1015988d
cmp ebx, edi
jne 0x10040d73
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1cc]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [eax + 0x88]
call fcn.100f73a1
mov eax, dword [esp + 0x34]
cmp esi, dword [eax + 8]
jb 0x10040d3c
call fcn.1015988d
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10005470
cmp dword [esp + 0x30], 0x10
jb 0x10040d73
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10159534
add esp, 4
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x70]
mov dword [esp + 0x1a4], 0xffffffff
call fcn.10019ce0
cmp esi, dword [ebx + 8]
jb 0x10040d99
call fcn.1015988d
add esi, 0x64
jmp 0x100409a0
cmp esi, dword [ebx + 8]
jb 0x10040dab
call fcn.1015988d
push 0xffffffffffffffff
push 0
mov edi, 0xf
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
call fcn.10005470
cmp dword [esp + 0x60], 0x10
jb 0x10040de3
mov edx, dword [esp + 0x4c]
push edx
call fcn.10159534
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jmp 0x10040d7b
lea ecx, [ebp + 0x88]
call fcn.100f5c3f
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10159cce
add esp, 0x194
ret 8