Function at 0x41bad0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x459f18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push 4
lea eax, [esp + 0x2c]
push eax
push 0x458e708
call fcn.004042b0
mov ecx, dword [esp + 0x34]
mov eax, dword [0x4a1498]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
xor esi, esi
mov dword [esp + 0x30], ecx
mov ecx, dword [0x4a1494]
add esp, 0xc
mov word [esp + 0x18], ax
mov word [esp + 0x1a], cx
mov word [esp + 0x20], dx
mov word [esp + 0x22], di
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
mov dword [esp + 0x50], esi
mov dword [esp + 0x1c], esi
jg 0x41bb63
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x41bbb5
cmp dword [0x4a1644], esi
je 0x41bbb5
push 0x466248
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push 0x3e8
lea edx, [esp + 0x3c]
push edx
mov edx, dword [0x49fc14]
push eax
mov eax, dword [0x49fc18]
push ecx
mov ecx, dword [0x4a1644]
push edx
push eax
push ecx
call fcn.0044bd30
add esp, 0x1c
push 0x466248
mov dword [esp + 0x20], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
cmp dword [esp + 0x1c], 1
mov dword [esp + 0x14], esi
jne 0x41bbd9
mov edx, dword [esp + 0x18]
push 1
push edx
push esi
lea ecx, [esp + 0x44]
call fcn.0041b9d0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [sym.imp.kernel32.dll_Sleep]
mov edi, dword [esp + 0x30]
mov bx, word [esp + 0x32]
sub eax, 0x7d0
mov dword [esp + 0x2c], eax
mov esi, 1
mov ecx, dword [esp + 0x58]
cmp ecx, dword [0x4a1498]
jne 0x41bc1c
mov edx, dword [esp + 0x5c]
cmp edx, dword [0x4a1494]
je 0x41bd80
push 4
lea eax, [esp + 0x28]
push eax
push 0x458e708
call fcn.004042b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp ecx, eax
jne 0x41bd80
mov eax, dword [0x4661f8]
mov ecx, 1
cmp eax, ecx
je 0x41bd85
cmp dword [0x4a1634], ecx
je 0x41bd85
cmp dword [0x4a1630], ecx
je 0x41bd85
mov ax, word [0x4a1488]
cmp ax, 9
je 0x41bc82
cmp ax, 0xa
jne 0x41bd85
jmp 0x41bc90
cmp ax, 0xa
je 0x41bc9e
cmp dword [0x49fc80], ecx
jne 0x41bcea
cmp ax, 0xa
je 0x41bc9e
cmp dword [0x49fc80], ecx
jne 0x41bce3
cmp dword [0x4661f8], ecx
je 0x41bf39
cmp dword [0x4a1634], ecx
je 0x41bf39
cmp dword [0x4a1630], ecx
je 0x41bf39
cmp ax, 9
je 0x41bcd2
cmp ax, 0xa
jne 0x41bf39
push 0x64
call ebp
mov ax, word [0x4a1488]
mov ecx, 1
jmp 0x41bc90
push 0x190
call ebp
push 4
push 0x4a1498
push 0x458e704
call fcn.004042b0
push 4
push 0x4a1494
push 0x458e6fc
call fcn.004042b0
mov eax, dword [esp + 0x34]
add esp, 0x18
cmp eax, 1
jne 0x41beee
cmp esi, 1
jle 0x41bdd5
mov eax, dword [0x4a1498]
movzx edx, di
cmp eax, edx
je 0x41bdd5
mov ecx, dword [0x4a1494]
movzx eax, bx
cmp ecx, eax
mov ebx, dword [esp + 0x14]
je 0x41bdd9
xor esi, esi
test ebx, ebx
jle 0x41bd80
push esi
lea ecx, [esp + 0x3c]
call fcn.0041b6e0
mov eax, dword [eax]
movzx ecx, ax
mov dword [esp + 0x30], eax
cmp dword [0x4a1498], ecx
jne 0x41bd7b
mov edx, dword [esp + 0x30]
mov eax, dword [0x4a1494]
shr edx, 0x10
cmp eax, edx
je 0x41bdd2
inc esi
cmp esi, ebx
jl 0x41bd50
mov ecx, 1
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x41bda3
push eax
call fcn.0044c8e1
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
cmp eax, esi
je 0x41bdbd
push eax
call fcn.0044c8e1
add esp, 4
mov ecx, 1
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x40]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
inc esi
jmp 0x41bdd9
mov ebx, dword [esp + 0x14]
cmp esi, ebx
jle 0x41be7e
mov eax, dword [0x4a1498]
cmp eax, dword [esp + 0x58]
jne 0x41bdf8
mov ecx, dword [0x4a1494]
cmp ecx, dword [esp + 0x5c]
je 0x41bd80
mov eax, dword [0x4a1644]
test eax, eax
je 0x41bd80
mov eax, dword [esp + 0x10]
cmp eax, 5
jg 0x41bd80
mov esi, eax
inc esi
push 0x466248
mov dword [esp + 0x14], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, dword [0x49fc14]
push 0x3e8
lea edx, [esp + 0x3c]
push edx
mov edx, dword [0x49fc18]
push eax
mov eax, dword [0x4a1644]
push edi
push ecx
push edx
push eax
call fcn.0044bd30
add esp, 0x1c
push 0x466248
mov esi, eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test esi, esi
je 0x41bd80
push 1
push edi
push 0
lea ecx, [esp + 0x44]
call fcn.0041b9d0
mov esi, 1
cmp esi, ebx
jge 0x41bd80
push esi
lea ecx, [esp + 0x3c]
call fcn.0041b6e0
mov edi, dword [eax]
inc esi
cmp esi, ebx
mov dword [esp + 0x30], edi
jge 0x41beaa
push esi
lea ecx, [esp + 0x3c]
call fcn.0041b6e0
mov edi, dword [eax]
mov dword [esp + 0x30], edi
inc esi
cmp edi, 0xffffffff
je 0x41bd80
mov eax, dword [0x49fc18]
movzx ecx, di
cmp ecx, eax
jge 0x41bd80
mov ebx, dword [esp + 0x30]
mov edx, dword [0x49fc14]
shr ebx, 0x10
movzx eax, bx
cmp eax, edx
jge 0x41bd80
push eax
push ecx
call fcn.0041b630
add esp, 8
push 0x6e
call ebp
jmp 0x41bc00
cmp dword [esp + 0x10], 6
jg 0x41bd80
mov ecx, dword [esp + 0x2c]
push 0x5dc
push ecx
call fcn.00410150
add esp, 8
cmp eax, 1
jne 0x41bf30
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.0041b630
add esp, 8
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x2c], eax
inc dword [esp + 0x10]
push 0x6e
call ebp
jmp 0x41bc00
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x41bdad