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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5714a0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebx + 0x50]
and eax, 0xfffffffe
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ecx, 1
test al, 4
je 0x459460
xor ecx, ecx
lea edx, [ebx + 0x74]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [ebx + 0x28]
push ecx
lea esi, [ebx + 0x38]
lea edi, [ebx + 0x70]
push eax
mov ecx, esi
call fcn.00458a40
add esp, 0x14
cmp eax, 1
jne 0x4595b9
test byte [esp + 0x1c], 2
je 0x4594e9
xor eax, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x30], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [esp + 0x30], 2
jne 0x45958e
mov ecx, dword [esi]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x58]
push eax
mov byte [ebx + 0x48], 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x60], 1
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x84], eax
jbe 0x45951a
call fcn.0053d6a6
mov edi, dword [ebx + 0x84]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x20], edx
cmp edi, dword [ebx + 0x88]
jbe 0x459534
call fcn.0053d6a6
mov esi, dword [ebx + 0x78]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
add edi, 0xc
test esi, esi
je 0x45954c
cmp esi, dword [esp + 0x20]
je 0x459551
call fcn.0053d6a6
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x45972f
test esi, esi
jne 0x45963d
call fcn.0053d6a6
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esi + 0x10]
jb 0x45957a
call fcn.0053d6a6
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x459644
mov eax, dword [edi]
jmp 0x459646
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4594e9
push eax
mov eax, dword [ebx + 4]
push 0x1f4
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
jmp 0x459783
test eax, eax
jne 0x459783
lea esi, [ebx + 0x58]
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
mov dword [esp + 0x60], ecx
mov eax, dword [ebx + 0x40]
cmp dword [ebx + 0x54], eax
lea edx, [eax + 1]
mov dword [ebx + 0x40], edx
jle 0x4595fe
mov eax, dword [ebx + 4]
push ecx
push 0x1f4
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x44], eax
push esi
jmp 0x45977d
lea eax, [ebx + 0x78]
mov dword [ebx + 0x44], ecx
call fcn.00459970
mov ecx, dword [ebx + 0x3c]
push ecx
mov byte [ebx + 0x48], 0
mov dword [edi], 3
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x459637
mov edx, dword [ebx + 0x74]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x3c]
push edx
push eax
push 0x4cc
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
jmp 0x45977d
mov esi, dword [esi]
jmp 0x45956c
mov eax, edi
mov edx, dword [edi - 8]
mov esi, dword [ebx + 0x38]
push 0xbb8
push ecx
push eax
push edx
call fcn.004677c0
add esp, 0x10
test eax, eax
je 0x459679
mov ecx, dword [edi - 8]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
jmp 0x4596fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
cmp eax, 0x5b4
jne 0x4596c8
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x459696
mov eax, dword [edi]
jmp 0x459698
mov eax, edi
mov esi, dword [ebx + 0x38]
push 0x1770
push ecx
push eax
mov eax, dword [edi - 8]
push eax
call fcn.004677c0
add esp, 0x10
test eax, eax
je 0x4596c8
mov eax, dword [edi - 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [ecx]
push eax
mov ecx, ebx
call edx
jmp 0x4596fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x3c]
push eax
mov dword [ebx + 0x70], 0x69
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4596fd
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x3c]
push ecx
push edx
push 0x4cc
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45972b
call fcn.0053d6a6
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x45971a
call fcn.0053d6a6
add dword [esp + 0x14], 0x24
mov esi, dword [esp + 0x10]
add edi, 0x24
jmp 0x459542
mov eax, dword [eax]
jmp 0x45970c
mov eax, dword [ebx + 0x88]
lea esi, [ebx + 0x78]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0xc], eax
jbe 0x459746
call fcn.0053d6a6
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x20], edx
cmp edi, dword [esi + 0x10]
jbe 0x459759
call fcn.0053d6a6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
push ecx
push edx
push edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00459a90
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x44], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4