Function at 0x4082d0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov esi, 0x10000
push esi
call fcn.00406330
add esp, 4
mov ebx, eax
mov dword [ebp - 4], ebx
call fcn.00408260
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x18]
push 0
push esi
push ebx
mov ecx, dword [ecx + 0x20]
push 0x10
mov dword [ebp - 0x2c], eax
call ecx
cmp eax, 0xc0000004
jne 0x408346
mov edi, dword [ebp - 0x18]
add esi, esi
push esi
push ebx
call fcn.004063f0
add esp, 8
mov ebx, eax
mov eax, dword [edi + 0x20]
push 0
push esi
push ebx
push 0x10
call eax
cmp eax, 0xc0000004
je 0x408320
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
test eax, eax
jns 0x40835f
push eax
push str.____NtQuerySystemInformation___failed__result_code__d_n
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push 0x13880
mov dword [ebp - 0x14], ebx
call fcn.00406330
mov ecx, dword [ebp - 4]
xor edx, edx
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ecx], edx
jbe 0x4083cf
lea esi, [ecx + 4]
mov eax, ecx
movups xmm0, xmmword [esi]
movd ecx, xmm0
cmp ecx, edi
je 0x4083b8
xor eax, eax
test ebx, ebx
je 0x4083a3
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 0x14]
je 0x4083b5
inc eax
cmp eax, ebx
jb 0x408393
cmp ebx, 0x4e20
je 0x4083c2
mov eax, dword [ebp - 0x1c]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
inc edx
add esi, 0x10
cmp edx, dword [eax]
jb 0x408382
jmp 0x4083cf
push 0x4121c4
call fcn.00406130
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xorps xmm0, xmm0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x5c], eax
call esi
push 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x18]
push 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push eax
push 0x4086c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x54], eax
test ebx, ebx
je 0x408685
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
push dword [edi]
push 0
push 0x41
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
je 0x408670
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], 0
cmp dword [eax], 0
jbe 0x408668
mov ecx, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
movups xmm0, xmmword [eax]
movd eax, xmm0
movups xmmword [ebp - 0x40], xmm0
cmp eax, dword [edi]
jne 0x408615
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 8]
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
push eax
mov eax, dword [ebx + 0x24]
push edx
mov dword [ebp - 8], 0
call eax
test eax, eax
js 0x40860f
push 0x4000
call fcn.00406330
mov ecx, dword [ebx + 0x28]
add esp, 4
mov edi, eax
push 0
push 0x4000
push edi
push 2
push dword [ebp - 8]
call ecx
test eax, eax
js 0x4085fe
mov eax, dword [edi + 4]
cmp word [eax], 0x46
jne 0x4085fe
cmp word [eax + 2], 0x69
jne 0x4085fe
cmp word [eax + 4], 0x6c
jne 0x4085fe
cmp word [eax + 6], 0x65
jne 0x4085fe
push 0x4000
call fcn.00406330
mov ecx, dword [ebp - 8]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408581
push 1
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x54]
call esi
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x4086c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov dword [ebp - 0x54], eax
call fcn.004063c0
push ebx
call fcn.004063c0
add esp, 8
jmp 0x408607
cmp dword [ebp - 0x44], 0
jge 0x408598
push edi
call fcn.004063c0
push ebx
call fcn.004063c0
add esp, 8
jmp 0x408607
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
test ax, ax
je 0x4085ed
movzx ebx, ax
mov esi, 0
shr ebx, 1
je 0x40862c
mov edx, dword [ebp + 8]
sub ecx, edx
mov dword [ebp - 0x30], ecx
nop word [eax + eax]
movzx eax, word [ecx + edx]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x4085d2
add eax, 0xffe0
cmp ax, word [edx]
jne 0x4085e4
inc esi
add edx, 2
cmp esi, ebx
jge 0x40862c
mov ecx, dword [ebp - 0x30]
jmp 0x4085c0
mov ebx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004063c0
push ebx
call fcn.004063c0
add esp, 8
jmp 0x408607
push edi
call fcn.004063c0
add esp, 4
push dword [ebp - 8]
call esi
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], 0x10
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx]
jae 0x408665
mov eax, dword [ebp - 0x20]
jmp 0x408470
mov eax, dword [ebp - 0x10]
push dword [eax]
push str.____Process_PID__d_possibly_lock_file__try_terminate_n
call fcn.00406130
add esp, 8
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call fcn.004063c0
push dword [ebp - 0x28]
call fcn.004063c0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [ebp - 8]
call esi
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0xc]
call esi
mov edi, dword [ebp - 0x10]
add edi, 4
sub ebx, 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
jne 0x408436
mov eax, dword [ebp - 0x54]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x58]
call esi
push dword [ebp - 4]
call fcn.004063c0
push dword [ebp - 0x1c]
call fcn.004063c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret