Function at 0x610a8520
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 0x610a8583
jle 0x610a8770
cmp dword [esp + 0x70], 2
je 0x610a86b3
test byte [0x6110a820], 1
jne 0x610a8807
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 0x610a86d3
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 0x610a867f
nop
lea esi, [esi]
mov eax, dword [esp + 0x3c]
add eax, edi
mov esi, dword [eax + 4]
test esi, esi
je 0x610a8673
cmp dword [esp + 0x70], 1
je 0x610a86e7
jle 0x610a8760
cmp dword [esp + 0x70], 2
je 0x610a8750
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 0x610a8740
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 0x610a8730
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 0x610a85f0
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 0x610a885e
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 0x610a8590
mov eax, dword [0x61107154]
mov eax, dword [eax + 0x11c]
mov dword [esp + 0x74], eax
jmp 0x610a8590
mov eax, dword [0x61107154]
mov eax, dword [eax + 0x124]
mov dword [esp + 0x74], eax
jmp 0x610a8590
mov ecx, dword [esp + 0x74]
cmp ecx, dword [esi + 0x124]
jne 0x610a8673
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 0x610a8740
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 0x610a865a
mov esi, 0xd
mov dword [esp + 0x28], esi
jmp 0x610a8664
mov ecx, 1
mov dword [esp + 0x28], ecx
jmp 0x610a866f
mov eax, dword [esp + 0x74]
cmp dword [esi + 0x11c], eax
jmp 0x610a86f1
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x610a86f3
mov eax, dword [esp + 0x74]
cmp eax, dword [esi]
jmp 0x610a86f1
mov edi, dword [esp + 0x70]
test edi, edi
jne 0x610a8552
mov esi, dword [esp + 0x74]
test esi, esi
je 0x610a884e
mov eax, dword [0x61107154]
mov ecx, dword [esp + 0x74]
cmp ecx, dword [eax]
jne 0x610a8590
mov edx, dword [esp + 0x2c]
mov eax, dword [0x61105584]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_SetPriorityClass
sub esp, 8
test eax, eax
je 0x610a88ce
mov edx, dword [esp + 0x78]
mov eax, dword [0x61107154]
mov dword [eax + 0x1c8], edx
test byte [0x6110a820], 1
je 0x610a86a9
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], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x610a86ab
mov dword [esp], 0x6110a820
mov eax, str.int_setpriority_int__id_t__int_
mov ecx, 0x16
mov dword [esp + 0x10], eax
mov eax, 0x6112f927
mov edx, 0x9f4
mov dword [esp + 0xc], eax
mov eax, 0x6112f900
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 0x610a855f
mov eax, dword [0x61107154]
mov edx, dword [eax]
mov dword [esp + 0x74], edx
jmp 0x610a878d
test byte [0x6110a820], 1
jne 0x610a888b
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 0x610a8576
mov dword [esp], 0x6110a820
mov edx, dword [esp + 0x28]
mov eax, str.int_setpriority_int__id_t__int_
mov dword [esp + 0x10], eax
mov eax, 0x6112f927
mov dword [esp + 0xc], eax
mov eax, 0x6112f900
mov dword [esp + 0x18], edx
mov edx, 0xa1d
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 0x610a8867
test byte [0x6110a820], 1
jne 0x610a88f3
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0xd
mov dword [eax], 0xd
jmp 0x610a8576
mov dword [esp], 0x6110a820
mov eax, 0x9e3
mov edx, 0xd
mov dword [esp + 0x14], eax
mov eax, str.int_setpriority_int__id_t__int_
mov dword [esp + 0x10], eax
mov eax, 0x6112f927
mov dword [esp + 0xc], eax
mov eax, 0x6112f900
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 0x610a88d7