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

Disassembly:
push 0xffffffffffffffff
push 0x420a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
cmp word [esi + 0x12], 0x18
jb 0x41cef7
mov ebp, dword [esp + 0x128]
cmp ebp, 2
jl 0x41cef7
cmp ebp, dword [esi + 8]
jae 0x41cef7
cmp ebp, dword [esi + 0xc]
jae 0x41cef7
mov eax, dword [esi + 0x80]
mov ebx, dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x41cb06
mov eax, dword [esi + 0x94]
test eax, eax
je 0x41cafd
lea edi, [esi + 0x84]
push edi
call ebx
test eax, eax
jne 0x41cafd
mov eax, dword [esi + 0x94]
test eax, eax
je 0x41cad6
push edi
call ebx
test eax, eax
jne 0x41cad6
lea eax, [esp + 0x58]
push edi
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x58]
push 1
push edx
mov ecx, esi
call fcn.0041b270
jmp 0x41cb06
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push 0
lea ecx, [esp + 0x64]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x58]
push 1
push edx
mov ecx, esi
call fcn.0041b270
jmp 0x41cb06
push 1
mov ecx, esi
call fcn.0041b300
mov eax, dword [esi + 0x94]
test eax, eax
je 0x41cb21
lea edi, [esi + 0x84]
push edi
call ebx
test eax, eax
je 0x41ce98
mov eax, dword [esi + 0x80]
xor edi, edi
cmp eax, edi
je 0x41cb4b
push 1
mov ecx, esi
call fcn.0041b300
mov eax, dword [esi + 0x9c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
jmp 0x41cb8b
push 0x80
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
cmp edx, edi
je 0x41cb7d
mov dword [edx + 0x70], edi
mov dword [edx + 0x74], edi
mov dword [edx + 0x78], edi
mov ecx, 0x1b
xor eax, eax
lea edi, [edx + 4]
mov dword [edx], 0x42420c
rep stosd dword es:[edi], eax
mov ecx, edx
jmp 0x41cb7f
xor ecx, ecx
push esi
mov dword [esp + 0x24], ecx
call fcn.0041df00
xor edi, edi
mov ecx, dword [esp + 0x12c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [esp + 0x30]
mov eax, ebp
cdq
xor ecx, ecx
sub eax, edx
mov cx, word [esi + 0x12]
mov edx, dword [edi + 8]
mov esi, ecx
imul ecx, edx
mov ebx, ebp
add ecx, 0x1f
sar eax, 1
imul ebx, ebp
mov dword [esp + 0x38], eax
mov eax, edx
sub eax, ebp
mov dword [esp + 0x48], ebx
shr ecx, 5
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xc]
shl ecx, 2
sub eax, ebp
mov dword [esp + 0x44], ecx
shr esi, 3
xor edi, edi
xor ecx, ecx
test eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ecx
jl 0x41ce68
jmp 0x41cc0a
mov ebp, dword [esp + 0x128]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test ecx, ecx
jne 0x41cc76
test ebp, ebp
jle 0x41cce6
mov edx, dword [eax + 0x78]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov edi, ebp
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
xor edx, edx
mov dl, byte [eax + 1]
add ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov cl, byte [eax + 2]
add eax, esi
add edx, ecx
dec edi
mov dword [esp + 0x24], edx
jne 0x41cc2d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x41cc25
jmp 0x41cce2
mov edx, dword [eax + 0x78]
test ebp, ebp
mov eax, dword [edx + ecx*4 - 4]
jle 0x41cce6
add ecx, ebp
mov edi, eax
sub edi, eax
mov dword [esp + 0x10], ebp
mov edx, dword [edx + ecx*4 - 4]
lea edi, [edx + edi + 2]
xor ecx, ecx
xor edx, edx
mov cl, byte [edi - 2]
mov dl, byte [eax]
sub ecx, edx
mov edx, dword [esp + 0x28]
add edx, ecx
xor ecx, ecx
mov cl, byte [edi - 1]
mov dword [esp + 0x28], edx
xor edx, edx
mov dl, byte [eax + 1]
sub ecx, edx
mov edx, dword [esp + 0x1c]
add edx, ecx
xor ecx, ecx
mov cl, byte [eax + 2]
mov dword [esp + 0x1c], edx
xor edx, edx
add eax, esi
mov dl, byte [edi]
add edi, esi
sub edx, ecx
mov ecx, dword [esp + 0x24]
add ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x41cc93
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
xor edx, edx
lea edi, [ecx + eax]
mov eax, dword [esp + 0x30]
mov dx, word [eax + 0x12]
mov ecx, dword [eax + 0x78]
mov eax, edx
mov dword [esp + 0x2c], ecx
imul eax, dword [esp + 0x38]
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 3
mov edx, dword [eax + edi*4]
mov edi, dword [esp + 0x28]
mov eax, edi
add ecx, edx
cdq
idiv ebx
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
mov byte [ecx], al
mov eax, dword [esp + 0x1c]
cdq
idiv ebx
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
cdq
idiv ebx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add ecx, esi
mov edx, dword [eax + 0x78]
mov edi, dword [edx + edi*4]
xor edx, edx
mov dx, word [eax + 0x12]
mov dword [esp + 0x3c], edi
mov eax, edx
imul eax, ebp
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x50]
sar ebp, 3
add ebp, edi
cmp eax, 1
jl 0x41ce38
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x128]
test edx, edx
jle 0x41ce02
mov ebx, edi
lea eax, [ebp + 2]
sub ebx, ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [eax - 2]
mov bl, byte [edi]
sub edx, ebx
mov ebx, dword [esp + 0x14]
add ebx, edx
xor edx, edx
mov dl, byte [eax - 1]
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bl, byte [edi + 1]
sub edx, ebx
mov ebx, dword [esp + 0x34]
add ebx, edx
xor edx, edx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x54]
mov dl, byte [ebx + eax]
xor ebx, ebx
mov bl, byte [eax]
sub ebx, edx
mov edx, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
sub edi, edx
sub eax, edx
mov edx, dword [esp + 0x40]
dec edx
mov dword [esp + 0x40], edx
jne 0x41cda3
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
add edi, esi
cdq
idiv ebx
add ebp, esi
mov dword [esp + 0x3c], edi
mov byte [ecx], al
mov eax, dword [esp + 0x34]
cdq
idiv ebx
mov byte [ecx + 1], al
mov eax, dword [esp + 0x10]
cdq
idiv ebx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x2c]
add ecx, esi
dec eax
mov dword [esp + 0x2c], eax
jne 0x41cd89
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x4c]
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ebp
push eax
mov eax, dword [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
cmp edi, ebp
mov dword [esp + 0x18], edi
jle 0x41cbff
mov ecx, dword [esp + 0x12c]
mov esi, dword [esp + 0x20]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x80]
test eax, eax
jne 0x41cef7
test esi, esi
je 0x41cef7
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x41cef7
push 0
lea ecx, [esp + 0x6c]
call fcn.0041af00
lea ecx, [esp + 0x68]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x128], 0
call fcn.0041e370
mov edx, dword [esp + 0x12c]
lea ecx, [esp + 0x68]
push edx
push ebp
call fcn.0041ca30
mov eax, dword [esi + 0x88]
mov ecx, dword [edi]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
mov ecx, esi
call fcn.0041b9f0
lea ecx, [esp + 0x68]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041b120
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8