Function at 0x40afe0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x40], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
xor bl, bl
mov dword [esp + 0x1c], ecx
mov bh, 1
mov byte [esp + 0xf], bl
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov byte [esp + 0x12], bh
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x10], eax
jbe 0x40b3ea
nop dword [eax]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x34], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [0x635a54]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 0
push eax
push 2
lea eax, [esp + 0x54]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
mov esi, eax
cmp esi, 0xc0000022
jne 0x40b0b7
cmp dword [esp + 0x18], 5
jne 0x40b0b7
lea eax, [esp + 0x28]
mov edx, 2
push eax
lea ecx, [esp + 0x4c]
call fcn.00524bc0
mov esi, eax
test esi, esi
js 0x40b0db
push 0
push dword [esp + 0x4c]
call dword [sym.imp.ntdll.dll_NtSuspendThread]
push dword [esp + 0x48]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x40b3d0
xor bh, bh
mov byte [esp + 0x12], bh
test bl, bl
jne 0x40b3ea
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x23]
push eax
mov eax, dword [esp + 0x28]
lfence
push esi
push ecx
mov eax, dword [eax + ebx*4]
push dword [eax]
push str.Unable_to_suspend_thread__lu
call fcn.004019c0
add esp, 0xc
mov ecx, edi
mov edx, dword [eax + 4]
call fcn.00401a00
nop dword [eax]
test al, al
je 0x40b2a5
cmp byte [esp + 0x1f], 0
je 0x40b29a
mov eax, dword [esp + 0x20]
mov edx, 2
push 0
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx]
call fcn.0047f5e0
mov esi, eax
test esi, esi
js 0x40b165
mov bh, 1
mov byte [esp + 0x12], bh
call sym.SystemInformer.exe_Ordinal_1190
mov bl, byte ds:[esp + 0x13]
jmp 0x40b3d4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebx*4]
push dword [eax]
push str.suspend
push str.Unable_to__s_thread__lu
call fcn.004019c0
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40b1be
cmp esi, 0xc0000005
je 0x40b1be
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40b1ac
movzx eax, si
jmp 0x40b1c8
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40b1cc
mov eax, esi
jmp 0x40b1c8
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40b1d7
push esi
lfence
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x40b1e5
push eax
lfence
call sym.SystemInformer.exe_Ordinal_1670
mov esi, eax
test ebx, ebx
je 0x40b203
test esi, esi
je 0x40b1f6
mov ecx, 0x21
jmp 0x40b211
push ebx
push 0x5d369c
push 0x5d1e90
jmp 0x40b274
test esi, esi
je 0x40b265
mov ecx, 9
mov ebx, 0x5d1e90
mov eax, edi
mov edx, esi
mov edi, 4
lfence
push dword [edi + edx]
push 0x5d369c
push ebx
push 0xfffe
push ecx
push eax
call sym.SystemInformer.exe_Ordinal_1699
add esp, 0x18
lea ecx, [esi - 8]
lfence
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
mov edi, dword [esp + 0x14]
jne 0x40b288
lfence
call fcn.004fe1e0
mov bh, byte [esp + 0x12]
call sym.SystemInformer.exe_Ordinal_1190
mov bl, byte ds:[esp + 0x13]
jmp 0x40b3d4
push 0x5d1e90
push 0x5d369c
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_Ordinal_1699
add esp, 0x18
mov bh, byte [esp + 0x12]
call sym.SystemInformer.exe_Ordinal_1190
mov bl, byte [esp + 0x13]
jmp 0x40b3d4
mov bl, 1
mov byte [esp + 0x13], bl
jmp 0x40b3d0
mov bl, byte [esp + 0x13]
test bl, bl
jne 0x40b417
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov eax, dword [ecx + eax*4]
push dword [eax]
push str.suspend
push str.Unable_to__s_thread__lu
call fcn.004019c0
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp esi, 0xc0000022
je 0x40b30d
nop
cmp esi, 0xc0000005
je 0x40b30d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40b2fb
movzx eax, si
jmp 0x40b317
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40b31b
mov eax, esi
jmp 0x40b317
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40b327
push esi
lfence
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x40b330
push eax
lfence
call sym.SystemInformer.exe_Ordinal_1670
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b36c
test edi, edi
je 0x40b345
mov edx, 0x21
jmp 0x40b382
push eax
push 0x5d369c
push 0x5d1e90
mov edi, dword ds:[esp + 0x20]
push 0xfffe
push 9
push edi
call sym.SystemInformer.exe_Ordinal_1699
add esp, 0x18
mov esi, eax
jmp 0x40b3cb
test edi, edi
je 0x40b403
mov eax, 0x5d1e90
mov edx, 9
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov eax, 4
mov esi, edi
lfence
push dword [eax + esi]
mov eax, dword [esp + 0x1c]
push 0x5d369c
push eax
push 0xfffe
push edx
push ecx
call sym.SystemInformer.exe_Ordinal_1699
mov esi, eax
lea ecx, [edi - 8]
add esp, 0x18
or eax, 0xffffffff
lfence
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40b3c7
lfence
call fcn.004fe1e0
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x40b417
mov bh, byte [esp + 0x12]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [ebp + 0x10]
jb 0x40b030
mov al, bh
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 0xc
push 0x5d1e90
push 0x5d369c
push str.Unable_to_perform_the_operation.
jmp 0x40b350
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f9f
mov esp, ebp
pop ebp
ret 0xc