Function at 0x40b440
Capabilities:
Resume 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 0x40b84a
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 [0x635a90]
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 0x40b517
cmp dword [esp + 0x18], 5
jne 0x40b517
lea eax, [esp + 0x28]
mov edx, 2
push eax
lea ecx, [esp + 0x4c]
call fcn.00524b00
mov esi, eax
test esi, esi
js 0x40b53b
push 0
push dword [esp + 0x4c]
call dword [sym.imp.ntdll.dll_NtResumeThread]
push dword [esp + 0x48]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x40b830
xor bh, bh
mov byte [esp + 0x12], bh
test bl, bl
jne 0x40b84a
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_resume_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 0x40b705
cmp byte [esp + 0x1f], 0
je 0x40b6fa
mov eax, dword [esp + 0x20]
mov edx, 3
push 0
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx]
call fcn.0047f4e0
mov esi, eax
test esi, esi
js 0x40b5c5
mov bh, 1
mov byte [esp + 0x12], bh
call sym.SystemInformer.exe_Ordinal_1190
mov bl, byte ds:[esp + 0x13]
jmp 0x40b834
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebx*4]
push dword [eax]
push str.resume
push str.Unable_to__s_thread__lu
call fcn.004019c0
add esp, 0xc
mov ebx, dword [eax + 4]
cmp esi, 0xc0000022
je 0x40b61e
cmp esi, 0xc0000005
je 0x40b61e
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40b60c
movzx eax, si
jmp 0x40b628
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40b62c
mov eax, esi
jmp 0x40b628
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40b637
push esi
lfence
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x40b645
push eax
lfence
call sym.SystemInformer.exe_Ordinal_1670
mov esi, eax
test ebx, ebx
je 0x40b663
test esi, esi
je 0x40b656
mov ecx, 0x21
jmp 0x40b671
push ebx
push 0x5d369c
push 0x5d1e90
jmp 0x40b6d4
test esi, esi
je 0x40b6c5
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 0x40b6e8
lfence
call fcn.004fe0c0
mov bh, byte [esp + 0x12]
call sym.SystemInformer.exe_Ordinal_1190
mov bl, byte ds:[esp + 0x13]
jmp 0x40b834
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 0x40b834
mov bl, 1
mov byte [esp + 0x13], bl
jmp 0x40b830
mov bl, byte [esp + 0x13]
test bl, bl
jne 0x40b877
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov eax, dword [ecx + eax*4]
push dword [eax]
push str.resume
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 0x40b76d
nop
cmp esi, 0xc0000005
je 0x40b76d
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x40b75b
movzx eax, si
jmp 0x40b777
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x40b77b
mov eax, esi
jmp 0x40b777
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x40b787
push esi
lfence
call sym.SystemInformer.exe_Ordinal_1660
jmp 0x40b790
push eax
lfence
call sym.SystemInformer.exe_Ordinal_1670
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b7cc
test edi, edi
je 0x40b7a5
mov edx, 0x21
jmp 0x40b7e2
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 0x40b82b
test edi, edi
je 0x40b863
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 0x40b827
lfence
call fcn.004fe0c0
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x40b877
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 0x40b490
mov al, bh
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0xc
push 0x5d1e90
push 0x5d369c
push str.Unable_to_perform_the_operation.
jmp 0x40b7b0
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583f7f
mov esp, ebp
pop ebp
ret 0xc