Function at 0x590190
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5fb848
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push eax
call fcn.00409dd0
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x4c]
cmp dword [ecx - 0xc], 0
je 0x5903b8
cmp dword [esp + 0x58], 0
jne 0x5901f5
call fcn.00577cb0
mov edi, eax
mov dword [esp + 0x54], edi
jmp 0x590227
mov eax, dword [edi + 8]
test eax, eax
mov ecx, dword [edi + 0x10]
mov esi, dword [edi]
jne 0x590206
mov eax, 0xfffffff4
test ecx, ecx
push 1
je 0x590213
push 0x2bc
jmp 0x590218
push 0x190
push eax
call fcn.0057f4d0
add esp, 0xc
mov dword [esp + 0x54], eax
mov edi, eax
test edi, edi
je 0x5903a6
mov edx, dword [esp + 0x40]
mov esi, dword [edx + 0x50]
test esi, esi
je 0x59023f
call fcn.0057b9f0
mov eax, dword [esp + 0x5c]
mov ecx, eax
shr ecx, 0x18
cmp ecx, 0xff
mov dword [esp + 0x14], ecx
jne 0x590279
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
push ebx
push ecx
push ebp
push edx
call fcn.00590c10
jmp 0x5903a2
push 0x70
call fcn.005d2776
add esp, 4
test eax, eax
je 0x5903a6
call fcn.00580c60
mov esi, eax
test esi, esi
je 0x5903a6
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
add eax, edi
lea ecx, [ebx + ebp]
sub eax, edi
sub ecx, ebp
mov ebx, eax
push ecx
push ebx
mov eax, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
call fcn.00580d80
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [ecx + ebp]
mov ecx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
add ebx, edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x38], ebx
xor eax, eax
mov ebx, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ecx
call fcn.00580380
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
xor eax, eax
call fcn.00580380
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x50]
push ecx
push 0
push esi
xor edi, edi
call fcn.00590c10
call fcn.00581450
mov edi, dword [esp + 0x44]
push edi
lea edx, [esp + 0x24]
push edx
push esi
call fcn.005814a0
call fcn.005815f0
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0x64
mov eax, 0x80808081
mul ecx
shr edx, 7
push edx
mov eax, esi
call fcn.00581670
lea eax, [esp + 0x20]
mov edx, edi
call fcn.005812a0
push edi
mov edi, dword [esp + 0x4c]
mov ebx, ebp
call fcn.0057f980
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x58], 0
je 0x5903b8
test edi, edi
je 0x5903b8
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5903e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x20