Function at 0x40e13d
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4625d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, ecx
mov dword [esi + 0xa4], 1
mov eax, dword [ebp + 0x10088]
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov dword [esp + 8], eax
je 0x40e401
push ebx
push edi
push 0x64
lea ecx, [esi + 0xb0]
call fcn.00422ca0
mov eax, dword [esi + 0xcc]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.004014c0
mov edi, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
cmp edi, ebx
je 0x40e1a2
mov ecx, dword [edi]
call fcn.00409380
add edi, 4
cmp edi, ebx
jne 0x40e194
mov ecx, dword [esi + 0x70]
lea edx, [ebp + 0x10078]
add ecx, 0x8c
push edx
call fcn.00402320
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp + 0x10060]
mov dword [eax + 0x90], ecx
mov eax, dword [esi + 0x70]
mov edx, dword [eax + 0x90]
mov eax, dword [eax + 0x8c]
push edx
push eax
push str._u
call fcn.00402ab0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00456608
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], edi
call fcn.004556a9
mov dword [esp + 0x24], vtable.CFileException.0
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
or ebp, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
call fcn.00401710
lea eax, [esp + 0x48]
push eax
mov ecx, 0x47d350
mov byte [esp + 0x44], 2
call fcn.00402cc0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push ecx
push 0x1001
mov bl, 3
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], bl
call fcn.004568a4
test eax, eax
jne 0x40e375
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov ebp, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebp
mov ebp, 0xff
sub eax, ebp
or eax, ecx
mov byte [esp + 0x40], 4
jge 0x40e2a3
push ebp
lea ecx, [esp + 0x14]
call fcn.00401780
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], ebp
jge 0x40e2b2
push 0x80070057
call fcn.00401140
push edi
push ebp
mov dword [esi - 0xc], ebp
push esi
lea ecx, [esp + 0x30]
mov word [esi + 0x1fe], di
call fcn.0045b78f
push esi
call fcn.0042a6a5
add esp, 4
cmp eax, edi
jl 0x40e2a8
cmp eax, dword [esi - 8]
jg 0x40e2a8
mov dword [esi - 0xc], eax
mov word [esi + eax*2], di
mov eax, dword [esp + 0x48]
push esi
push eax
push 0x467c3c
call fcn.00402ab0
add esp, 0xc
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea eax, [esi - 0x10]
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e31a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e33d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
mov dword [esp + 0x24], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x40], 0xffffffff
jmp 0x40e3f6
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0045635b
lea ecx, [esp + 0x14]
call fcn.004565a6
mov eax, 1
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
mov dword [esp + 0x24], vtable.CFileException.0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x14]
call fcn.00456647
pop edi
pop ebx
mov ecx, dword [esp + 0x30]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4