Function at 0x610a8b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea eax, [esp + 0x78]
call sym.nice_to_winprio_int_
cmp dword [esp + 0x70], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebp
je 0x610a8b63
jle 0x610a8d50
cmp dword [esp + 0x70], 2
je 0x610a8c93
test byte [0x6110c854], 1
jne 0x610a8de7
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x16
mov dword [eax], 0x16
add esp, 0x5c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x74]
test esi, esi
je 0x610a8cb3
nop
mov byte [esp + 0x30], 0
mov eax, 0x100
xor edx, edx
mov dword [esp + 0x40], eax
mov eax, method.winpids.enum_init_bool_
xor ecx, ecx
mov dword [esp + 0x44], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x48], eax
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x4c], eax
xor eax, eax
xor edi, edi
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov dword [esp], eax
call method.winpids.set_bool_
mov edx, dword [esp + 0x4c]
cmp edx, 0
jbe 0x610a8c5f
nop
lea esi, [esi]
mov eax, dword [esp + 0x3c]
add eax, edi
mov esi, dword [eax + 4]
test esi, esi
je 0x610a8c53
cmp dword [esp + 0x70], 1
je 0x610a8cc7
jle 0x610a8d40
cmp dword [esp + 0x70], 2
je 0x610a8d30
mov eax, dword [esi + 0x14]
mov dword [esp], 0x200
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x610a8d20
mov dword [esp], ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SetPriorityClass
sub esp, 8
test eax, eax
je 0x610a8d10
mov eax, dword [esp + 0x78]
mov dword [esi + 0x1c8], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov edx, dword [esp + 0x4c]
inc ebp
add edi, 0x1c
cmp edx, ebp
ja 0x610a8bd0
lea ecx, [esp + 0x30]
xor ebx, ebx
mov dword [esp], ecx
call method.winpids.release__
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x610a8e3e
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.winpids::winpids__
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x610a8b70
mov eax, dword [0x61109170]
mov eax, dword [eax + 0x11c]
mov dword [esp + 0x74], eax
jmp 0x610a8b70
mov eax, dword [0x61109170]
mov eax, dword [eax + 0x124]
mov dword [esp + 0x74], eax
jmp 0x610a8b70
mov ecx, dword [esp + 0x74]
cmp ecx, dword [esi + 0x124]
jne 0x610a8c53
mov eax, dword [esi + 0x14]
mov dword [esp], 0x200
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x610a8d20
mov dword [esp], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetPriorityClass
sub esp, 8
test eax, eax
jne 0x610a8c3a
mov esi, 0xd
mov dword [esp + 0x28], esi
jmp 0x610a8c44
mov ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x610a8c4f
mov eax, dword [esp + 0x74]
cmp dword [esi + 0x11c], eax
jmp 0x610a8cd1
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x610a8cd3
mov eax, dword [esp + 0x74]
cmp eax, dword [esi]
jmp 0x610a8cd1
mov edi, dword [esp + 0x70]
test edi, edi
jne 0x610a8b32
mov esi, dword [esp + 0x74]
test esi, esi
je 0x610a8e2e
mov eax, dword [0x61109170]
mov ecx, dword [esp + 0x74]
cmp ecx, dword [eax]
jne 0x610a8b70
mov edx, dword [esp + 0x2c]
mov eax, dword [0x61107568]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_SetPriorityClass
sub esp, 8
test eax, eax
je 0x610a8eae
mov edx, dword [esp + 0x78]
mov eax, dword [0x61109170]
mov dword [eax + 0x1c8], edx
test byte [0x6110c854], 1
je 0x610a8c89
mov dword [esp + 0x10], edx
mov eax, str.Set_nice_to__d
mov ebp, str.int_setpriority_int__id_t__int_
mov dword [esp + 0xc], eax
mov edi, 0x40
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x610a8c8b
mov dword [esp], 0x6110c854
mov eax, str.int_setpriority_int__id_t__int_
mov ecx, 0x16
mov dword [esp + 0x10], eax
mov eax, 0x61131a27
mov edx, 0x9f5
mov dword [esp + 0xc], eax
mov eax, 0x61131a00
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a8b3f
mov eax, dword [0x61109170]
mov edx, dword [eax]
mov dword [esp + 0x74], edx
jmp 0x610a8d6d
test byte [0x6110c854], 1
jne 0x610a8e6b
call sym.cygwin1.dll___errno
mov ecx, dword [esp + 0x28]
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], ecx
mov dword [eax], ecx
lea eax, [esp + 0x30]
mov dword [esp], eax
call sym.winpids::winpids__
jmp 0x610a8b56
mov dword [esp], 0x6110c854
mov edx, dword [esp + 0x28]
mov eax, str.int_setpriority_int__id_t__int_
mov dword [esp + 0x10], eax
mov eax, 0x61131a27
mov dword [esp + 0xc], eax
mov eax, 0x61131a00
mov dword [esp + 0x18], edx
mov edx, 0xa1e
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a8e47
test byte [0x6110c854], 1
jne 0x610a8ed3
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0xd
mov dword [eax], 0xd
jmp 0x610a8b56
mov dword [esp], 0x6110c854
mov eax, 0x9e4
mov edx, 0xd
mov dword [esp + 0x14], eax
mov eax, str.int_setpriority_int__id_t__int_
mov dword [esp + 0x10], eax
mov eax, 0x61131a27
mov dword [esp + 0xc], eax
mov eax, 0x61131a00
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a8eb7