Function at 0x49a410
Capabilities:
Get number of processors
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4ef211
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ecx, dword [0x4fb190]
mov ebx, dword [esp + 0x484]
mov dword [esp + 0x30], ebx
test cl, 1
jne 0x49ac4a
mov dword [0x4fb1ac], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [0x4fb194]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
shr eax, 0x1f
mov dword [esp + 0x478], 0
test al, 1
je 0x49a4d0
call ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x20]
mov eax, dword [0x4fb194]
and eax, 0x3fffffff
push eax
call fcn.00489fa0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x9c
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebp, eax
test ebp, ebp
jne 0x49a4f9
push 0x12
call ebx
push eax
call esi
push ebp
mov dword [ebp], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x49a520
push ebp
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xff
call ebx
push eax
call esi
call fcn.004d3444
test eax, eax
jne 0x49a530
push 0x1c
call ebx
push eax
call esi
call fcn.004d36d0
test eax, eax
jne 0x49a540
push 0x10
call ebx
push eax
call esi
call fcn.004d3763
test eax, eax
jns 0x49a553
push 0x1b
call fcn.004d3ab3
add esp, 4
push 1
call fcn.004d3ade
add esp, 4
test eax, eax
je 0x49a56a
push eax
call fcn.004d3ab3
add esp, 4
call fcn.00463480
mov ecx, 0x27
mov dword [esp + 0x18], eax
mov esi, ebp
lea edi, [eax + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov ecx, edi
call fcn.0048b350
mov ecx, edi
call fcn.0048b320
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [0x504dd8]
test ebp, ebp
jne 0x49a5e8
push 0x4d8
call fcn.004d100c
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x49a5d8
mov ecx, ebp
call fcn.0045c510
mov ecx, ebp
mov byte [esp + 0x478], 2
call fcn.0045d650
jmp 0x49a5da
xor ebp, ebp
mov byte [esp + 0x478], 0
mov dword [0x504dd8], ebp
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov dword [ebp + 0x1c0], eax
mov dword [0x504cb0], eax
call eax
mov dword [edi + 0x28], eax
mov esi, 0x4fb190
mov eax, 0x601
cmp word [edi + 6], ax
push 0x400
setae al
mov byte [ebp + 0x2c5], al
mov eax, 0x602
cmp word [edi + 6], ax
setae al
mov byte [ebp + 0x2c6], al
lea eax, [esp + 0x70]
sub esi, dword [0x4fb1a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x6c]
mov dword [edi + 0x24], esi
push eax
lea ecx, [edi + 8]
call fcn.0049e970
call fcn.0049b080
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x478], 3
push eax
call fcn.0049af20
add esp, 4
mov ecx, ebp
push dword [esp + 0x14]
call fcn.0045dba0
test al, al
jne 0x49a68e
push 0xff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4fb190]
shr eax, 0xa
test al, 1
je 0x49a705
cmp dword [ebp + 0x444], 0
je 0x49a705
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x38]
call fcn.0049f510
lea eax, [esp + 0x50]
mov byte [esp + 0x478], 4
push eax
lea ecx, [esp + 0x38]
call fcn.0049f880
add eax, 4
mov byte [esp + 0x478], 5
cmp dword [eax + 0x14], 0x10
jb 0x49a6da
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0x444]
call eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x478], 4
call fcn.0049f590
lea ecx, [esp + 0x34]
mov byte [esp + 0x478], 3
call fcn.0049f590
mov edi, dword [0x504ca8]
test edi, edi
jne 0x49a74f
push 0x440
call fcn.004d100c
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x478], 6
test esi, esi
je 0x49a73f
call fcn.004634e0
push eax
mov ecx, esi
call fcn.004603e0
mov edi, eax
jmp 0x49a741
xor edi, edi
mov byte [esp + 0x478], 3
mov dword [0x504ca8], edi
mov eax, dword [0x504ad8]
test eax, eax
jne 0x49a796
push 0x63c
call fcn.004d100c
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x478], 7
test esi, esi
je 0x49a787
push edi
call fcn.004634e0
push eax
mov ecx, esi
call fcn.00495510
jmp 0x49a789
xor eax, eax
mov byte [esp + 0x478], 3
mov dword [0x504ad8], eax
mov ecx, dword [0x4fc78c]
test ecx, 0x800000
jne 0x49a7e7
lea esi, [eax + 0x94]
mov ecx, esi
call fcn.0046d120
int3
mov ecx, dword [esp + 0x18]
call fcn.0048b230
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push 0x4fb190
call fcn.00493ae0
test dword [0x4fc78c], 0x800000
jne 0x49a82b
mov esi, dword [0x504ad8]
lea ecx, [esi + 0x94]
call fcn.0046d120
invalid
push 0x4fb190
mov ecx, edi
call 0x496c00
test al, al
jne 0x49a927
mov eax, dword [0x4fb190]
or eax, 1
mov dword [0x4fb190], eax
shr eax, 8
test al, 1
je 0x49a864
push dword [esp + 0x30]
call fcn.0049ae60
add esp, 4
jmp 0x49a8fa
mov ecx, dword [0x504c90]
test ecx, ecx
je 0x49a87e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x504c90], 0
mov ecx, dword [0x504ca8]
test ecx, ecx
je 0x49a898
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x504ca8], 0
mov ecx, dword [0x504ca0]
test ecx, ecx
je 0x49a8b2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x504ca0], 0
mov ecx, dword [0x504c88]
test ecx, ecx
je 0x49a8cc
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x504c88], 0
mov esi, dword [0x504dd8]
test esi, esi
je 0x49a8f0
mov ecx, esi
call fcn.0045c9c0
push esi
call fcn.004d105d
add esp, 4
mov dword [0x504dd8], 0
call fcn.004d3746
call fcn.004d3459
mov esi, dword [esp + 0x14]
mov edi, dword [0x4fb1a4]
mov byte [esp + 0x478], 0
test esi, esi
je 0x49a920
mov ecx, esi
call fcn.00460bf0
push esi
call fcn.004d105d
add esp, 4
mov eax, edi
jmp 0x49aca2
mov eax, dword [edi + 0xc4]
shr eax, 8
test al, 1
jne 0x49a963
mov eax, dword [edi + 0xc0]
shr eax, 0x17
test al, 1
jne 0x49a963
cmp dword [ebp + 0x2dc], 0
je 0x49a963
mov eax, dword [ebp + 0x2e4]
push 0
call eax
mov eax, dword [ebp + 0x2dc]
push 0x49ae40
push 1
call eax
test dword [0x4fc78c], 0x800000
jne 0x49a98d
mov esi, dword [0x504ad8]
lea ecx, [esi + 0x94]
call fcn.0046d120
invalid
push 0x4fb190
mov ecx, edi
call 0x497cb0
call 0x488d60
test dword [0x4fc78c], 0x800000
jne 0x49a9cd
mov esi, dword [0x504ad8]
lea ecx, [esi + 0x94]
call fcn.0046d120
lea ecx, [esi + 0x94]
mov byte [5], 5
call fcn.0046d300
push dword [0x4fcb56]
mov ebx, dword [edi + 0xc0]
mov ecx, edi
push dword [0x4fcb5a]
shr ebx, 0x11
call fcn.00493930
push eax
and bl, 1
sete al
movzx eax, al
push eax
push dword [0x4fcb5e]
call fcn.00499ea0
mov ecx, eax
call fcn.00486e00
mov ecx, edi
mov dword [0x4fcb5e], 0
mov dword [0x4fcb56], 0
call fcn.00492520
mov eax, dword [edi + 0xc4]
mov ecx, edi
shr eax, 8
not al
and al, 1
push 0
movzx eax, al
push eax
call fcn.00493940
mov eax, dword [edi + 0xc0]
shr eax, 2
test al, 1
je 0x49aa8c
push dword [0x4fcb86]
mov ecx, edi
push dword [0x4fcb8a]
call fcn.00493930
push eax
push dword [0x4fc7b4]
call fcn.00472fc0
mov ecx, eax
call fcn.00473040
mov dword [0x4fc7b4], 0
mov dword [0x4fcb86], 0
mov dword [0x4fcb8a], 0
mov ebx, dword [edi + 0xc0]
mov eax, ebx
shr eax, 3
test al, 1
je 0x49aaa9
shr ebx, 0x12
and bl, 1
call fcn.00476dc0
mov byte [eax + 5], bl
test dword [0x4fc78c], 0x800000
jne 0x49aad4
mov esi, dword [0x504ad8]
lea ecx, [esi + 0x94]
call fcn.0046d120
in ax, 0x64
lea ecx, [esi + 0x94]
call fcn.0046d300
push dword [0x4fcb96]
movzx eax, word [0x4fc806]
push dword [0x4fcb92]
mov ecx, dword [edi + 0xf0]
push dword [0x4fcb8e]
push eax
call fcn.004cffe0
push eax
call fcn.00476d30
mov ecx, eax
call fcn.00499f10
mov edx, dword [0x4fcb9a]
mov eax, edx
shr eax, 0x1c
test al, 1
je 0x49ab2a
mov ecx, dword [0x505eec]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
inc dword [eax + 0x6aa0]
test dword [0x4fc78c], 0x800000
mov dword [0x4fcb92], 0
mov dword [0x4fcb96], 0
jne 0x49ab73
mov esi, dword [0x504ad8]
lea ecx, [esi + 0x94]
call fcn.0046d120
lea ecx, [esi + 0x94]
mov byte [6], 6
call fcn.0046d300
mov edx, dword [0x4fcb9a]
and dl, 0x30
cmp dl, 0x20
jne 0x49abb0
mov eax, dword [edi + 0xc0]
shr eax, 0x13
test al, 1
jne 0x49abb0
mov eax, dword [esp + 0x18]
mov ecx, 0x600
cmp word [eax + 6], cx
jae 0x49abb0
call fcn.00463480
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x49aba7
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0x1c8]
call eax
call fcn.00463480
mov ecx, dword [eax + 0x24]
mov eax, dword [0x4fcb9e]
add eax, ecx
test dword [0x4fc78c], 0x800000
mov dword [0x4fb1a4], eax
jne 0x49abef
mov esi, dword [0x504ad8]
lea ecx, [esi + 0x94]
call fcn.0046d120
in ax, 0x64
lea ecx, [esi + 0x94]
call fcn.0046d300
mov eax, dword [0x4fb194]
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x49ac1c
push dword [esp + 0x24]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esp + 0x20]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
or dword [0x4fb190], 1
mov esi, dword [esp + 0x14]
mov byte [esp + 0x478], 0
test esi, esi
je 0x49ac43
mov ecx, esi
call fcn.00460bf0
push esi
call fcn.004d105d
add esp, 4
mov eax, dword [0x4fb1a4]
jmp 0x49aca2
mov eax, ecx
shr eax, 8
test al, 1
je 0x49aca0
mov edx, dword [0x4fc78c]
mov eax, edx
shr eax, 4
test al, 1
jne 0x49aca0
cmp dword [esp + 0x480], 0
jne 0x49ac43
push ebx
test dl, dl
jns 0x49ac80
call fcn.0049ae60
mov eax, dword [0x4fb1a4]
add esp, 4
jmp 0x49aca2
or ecx, 4
push 0
mov dword [0x4fb190], ecx
call fcn.0049af00
push eax
call dword [0x4fb1a4]
push ebx
call fcn.0049ae60
add esp, 4
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.004d17f4
add esp, 0x468
ret