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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x562528
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5cb160]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5cb160]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov edi, ecx
mov dword [esp + 0x18], vtable.CGdiObject.0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], vtable.CFont.0
mov dword [esp + 0x50], 1
call fcn.00436d1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41309b
push 0x80004005
call fcn.00401d90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x50], 3
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x30]
add ecx, 0x78
add eax, 0x64
mov dword [esp + 0x24], ecx
sub edx, 0x64
sub ebx, 0x50
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
call fcn.00447918
mov ecx, dword [esi + 8]
push 0x5a
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x50
neg eax
push eax
push 0xe
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x59973c
push 0x22
push 1
push 2
push 3
push 0x86
push 0
push 0
push 0
push 0x384
push 0
push 0
neg eax
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x1c]
call fcn.004478be
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
mov eax, dword [0x5d5884]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x21
lea ecx, [esp + 0x24]
push ecx
mov ebx, 5
mov dword [esp + 0x30], 0x190
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xa
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
push 0x17
push 0x599744
lea ecx, [esp + 0x18]
call fcn.00401a70
add dword [esp + 0x24], 0x23
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x20], ebx
push 0x20
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
push 8
push 0x59975c
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea eax, [edi + 0x94]
push eax
lea ecx, [esp + 0x14]
call fcn.004015e0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x98
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
push 8
push 0x599768
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea eax, [edi + 0x98]
push eax
lea ecx, [esp + 0x14]
call fcn.004015e0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x98
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
push 8
push 0x598ab0
lea ecx, [esp + 0x18]
call fcn.00401a70
add dword [esp + 0x24], 0x23
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
lea eax, [edi + 0x9c]
push eax
lea ecx, [esp + 0x14]
call fcn.004015e0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x98
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
push 8
push 0x599774
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call edx
add edi, 0xa0
push edi
lea ecx, [esp + 0x14]
call fcn.004015e0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0x20
mov dword [esp + 0x24], 0x98
mov ecx, dword [eax - 0xc]
lea edi, [esp + 0x24]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 8
push 0x599780
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
push 0x20
mov dword [esp + 0x24], ebx
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
movzx ecx, word [esp + 0x36]
movzx edx, word [esp + 0x32]
push ecx
movzx eax, word [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._4d__02d__02d
push ecx
call fcn.00404a30
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
add esp, 0x14
push 0x20
mov dword [esp + 0x24], 0x98
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 8
push 0x59979c
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
push 0x20
mov dword [esp + 0x24], ebx
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x3a]
movzx eax, word [esp + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._2d:_02d:_02d
push ecx
call fcn.00404a30
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
add esp, 0x14
push 0x20
mov dword [esp + 0x24], 0x98
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 8
push 0x5997b8
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
push 0x20
mov dword [esp + 0x24], ebx
mov ecx, dword [eax - 0xc]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x5d586c
lea ecx, [esp + 0x14]
call fcn.004015e0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x20], 0x98
mov ecx, dword [eax - 0xc]
push 0x20
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
call fcn.00436d1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41348b
push 0x80004005
call fcn.00401d90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], bl
mov ecx, 0x5d587c
xor edi, edi
call fcn.004123d0
mov ecx, eax
call fcn.00412450
mov eax, dword [eax]
push 0x59729c
push eax
call fcn.00539056
add esp, 8
test eax, eax
setne al
test al, al
je 0x41352a
mov ecx, dword [0x5d587c]
add dword [esp + 0x24], 0xa
push 0x7c
push edi
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00438182
test eax, eax
je 0x41352a
jmp 0x4134f0
mov eax, dword [esp + 0x14]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
inc edi
call edx
mov eax, dword [0x5d587c]
push 0x7c
push edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00438182
test eax, eax
jne 0x4134f0
push 0x17
push 0x599744
lea ecx, [esp + 0x18]
call fcn.00401a70
mov ecx, dword [esp + 0x10]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
push 0x20
mov dword [esp + 0x24], ebx
mov eax, dword [ecx - 0xc]
lea edi, [esp + 0x24]
push edi
push eax
mov eax, dword [edx + 0x68]
push ecx
mov ecx, esi
call eax
mov ecx, 0x5d5880
call fcn.004123d0
mov ecx, eax
call fcn.00412450
mov eax, dword [eax]
push 0x59729c
push eax
call fcn.00539056
add esp, 8
test eax, eax
setne al
test al, al
je 0x4135da
mov ecx, dword [0x5d5880]
push 0x7c
xor edi, edi
push edi
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00438182
test eax, eax
je 0x4135da
mov eax, dword [esp + 0x14]
add dword [esp + 0x24], 0x23
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x20
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
inc edi
call edx
mov eax, dword [0x5d5880]
push 0x7c
push edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00438182
test eax, eax
jne 0x4135a0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413625
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], vtable.CFont.0
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x18]
call fcn.00409cc0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0053866d
mov esp, ebp
pop ebp
ret 8