Function at 0x40b620
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
mov cl, 1
mov dword [esp + 4], edx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], ebx
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], 0
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x10], eax
jbe 0x40ba03
nop
mov eax, dword [edx + eax*4]
mov edi, dword [0x635f50]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x18
mov eax, dword [eax]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
push eax
push 2
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.ntdll.dll_NtOpenThread]
mov esi, eax
cmp esi, 0xc0000022
jne 0x40b6e0
cmp edi, 5
jne 0x40b6e0
lea eax, [esp + 0x20]
push eax
lea edx, [edi - 3]
lea ecx, [esp + 0x44]
call fcn.00523d80
mov esi, eax
test esi, esi
js 0x40b708
push 0
push dword [esp + 0x44]
call dword [sym.imp.ntdll.dll_NtResumeThread]
push dword [esp + 0x40]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
lea esp, [esp]
test esi, esi
jns 0x40b9cf
cmp byte [esp + 0xe], 0
mov edi, dword [esp + 0x18]
mov byte [esp + 0xd], 0
jne 0x40b8b4
lea eax, [esp + 0xf]
push eax
mov eax, dword [esp + 0x14]
lfence
push esi
mov eax, dword [eax + edi*4]
push dword [eax]
push str.Unable_to_resume_thread__lu
call fcn.00401820
add esp, 8
mov ecx, ebx
mov edx, dword [eax + 4]
call fcn.00401880
test al, al
je 0x40b8b4
cmp byte [esp + 0xf], 0
je 0x40b8aa
mov eax, dword [esp + 0x10]
mov edx, 3
push 0
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx]
call fcn.0047e860
mov esi, eax
test esi, esi
js 0x40b785
mov byte [esp + 0xd], 1
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
lea ecx, [ecx]
jmp 0x40b9cf
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
push dword [eax]
push str.resume
push str.Unable_to__s_thread__lu
call fcn.00401820
add esp, 0xc
mov edi, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40b7de
cmp esi, 0xc0000005
je 0x40b7de
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40b7cc
movzx eax, si
jmp 0x40b7e8
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40b7ec
mov eax, esi
jmp 0x40b7e8
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40b7f7
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x40b805
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test edi, edi
je 0x40b823
test esi, esi
je 0x40b816
mov ecx, 0x21
jmp 0x40b831
push edi
push 0x5cc39c
push 0x5caac0
jmp 0x40b88b
test esi, esi
je 0x40b87c
mov ecx, 9
mov edi, 0x5caac0
mov eax, ebx
mov edx, esi
mov ebx, 4
lfence
push dword [ebx + edx]
push 0x5cc39c
push edi
push 0xfffe
push ecx
push eax
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
lfence
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
mov ebx, dword [esp + 0x14]
jne 0x40b89b
lfence
call fcn.004fbe40
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40b9cf
push 0x5caac0
push 0x5cc39c
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push ebx
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
jmp 0x40b8a0
call sym.SystemInformer.exe__PhUiDisconnectFromPhSvc_0
jmp 0x40b9cf
mov byte [esp + 0xe], 1
jmp 0x40b9cf
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
push dword [eax]
push str.resume
push str.Unable_to__s_thread__lu
call fcn.00401820
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
cmp esi, 0xc0000022
je 0x40b90d
mov edi, edi
cmp esi, 0xc0000005
je 0x40b90d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40b8fb
movzx eax, si
jmp 0x40b917
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40b91b
mov eax, esi
jmp 0x40b917
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40b927
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x40b930
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40b952
test edi, edi
je 0x40b945
mov edx, 0x21
jmp 0x40b960
push eax
push 0x5cc39c
push 0x5caac0
jmp 0x40b9b8
test edi, edi
je 0x40b9a9
mov edx, 9
mov eax, 0x5caac0
mov ecx, ebx
mov esi, edi
mov ebx, 4
lfence
push dword [ebx + esi]
push 0x5cc39c
push eax
push 0xfffe
push edx
push ecx
call sym.SystemInformer.exe_PhShowMessage2
mov esi, eax
lea ecx, [edi - 8]
add esp, 0x18
or eax, 0xffffffff
lfence
lock xadd dword [ecx + 4], eax
dec eax
mov ebx, dword [esp + 0x14]
jne 0x40b9ca
lfence
call fcn.004fbe40
jmp 0x40b9ca
push 0x5caac0
push 0x5cc39c
push str.Unable_to_perform_the_operation.
push 0xfffe
push 9
push ebx
call sym.SystemInformer.exe_PhShowMessage2
mov esi, eax
add esp, 0x18
cmp esi, 1
jne 0x40b9e9
mov eax, dword ds:[esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x10]
jb 0x40b660
mov al, byte [esp + 0xd]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov al, cl
mov ecx, dword [esp + 0x40]
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc