Function at 0x407690
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.00406220
add esp, 4
mov ebx, eax
mov dword [ebp - 4], ebx
call fcn.00407620
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 0x407706
mov edi, dword [ebp - 0x18]
add esi, esi
push esi
push ebx
call fcn.004062e0
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 0x4076e0
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
test eax, eax
jns 0x40771f
push eax
push str.____NtQuerySystemInformation___failed__result_code__d_n
call fcn.00406020
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.00406220
mov ecx, dword [ebp - 4]
xor edx, edx
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ecx], edx
jbe 0x40778f
lea esi, [ecx + 4]
mov eax, ecx
movups xmm0, xmmword [esi]
movd ecx, xmm0
cmp ecx, edi
je 0x407778
xor eax, eax
test ebx, ebx
je 0x407763
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 0x14]
je 0x407775
inc eax
cmp eax, ebx
jb 0x407753
cmp ebx, 0x4e20
je 0x407782
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 0x407742
jmp 0x40778f
push 0x410ec4
call fcn.00406020
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 0x407a80
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 0x407a45
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 0x407a30
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], 0
cmp dword [eax], 0
jbe 0x407a28
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 0x4079d5
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 0x4079cf
push 0x4000
call fcn.00406220
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 0x4079be
mov eax, dword [edi + 4]
cmp word [eax], 0x46
jne 0x4079be
cmp word [eax + 2], 0x69
jne 0x4079be
cmp word [eax + 4], 0x6c
jne 0x4079be
cmp word [eax + 6], 0x65
jne 0x4079be
push 0x4000
call fcn.00406220
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 0x407941
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 0x407a80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov dword [ebp - 0x54], eax
call fcn.004062b0
push ebx
call fcn.004062b0
add esp, 8
jmp 0x4079c7
cmp dword [ebp - 0x44], 0
jge 0x407958
push edi
call fcn.004062b0
push ebx
call fcn.004062b0
add esp, 8
jmp 0x4079c7
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
test ax, ax
je 0x4079ad
movzx ebx, ax
mov esi, 0
shr ebx, 1
je 0x4079ec
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 0x407992
add eax, 0xffe0
cmp ax, word [edx]
jne 0x4079a4
inc esi
add edx, 2
cmp esi, ebx
jge 0x4079ec
mov ecx, dword [ebp - 0x30]
jmp 0x407980
mov ebx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004062b0
push ebx
call fcn.004062b0
add esp, 8
jmp 0x4079c7
push edi
call fcn.004062b0
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 0x407a25
mov eax, dword [ebp - 0x20]
jmp 0x407830
mov eax, dword [ebp - 0x10]
push dword [eax]
push str.____Process_PID__d_possibly_lock_file__try_terminate_n
call fcn.00406020
add esp, 8
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call fcn.004062b0
push dword [ebp - 0x28]
call fcn.004062b0
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 0x4077f6
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.004062b0
push dword [ebp - 0x1c]
call fcn.004062b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret