Function at 0x407fe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b525
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x40f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00408270
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
cmp esi, dword [ebp - 0x18]
je 0x40810b
push esi
lea ecx, [ebp - 0x3c]
call fcn.00408a10
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
cmp ebx, edi
jne 0x408097
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x4080ff
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40808b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081db
push edx
push ecx
call fcn.0040a1f6
add esp, 8
jmp 0x4080ff
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
cmovae ecx, edi
push eax
push 0
call fcn.00409130
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408184
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x4080fc
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4080f2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081db
push ecx
push edi
call fcn.0040a1f6
add esp, 8
mov edi, dword [ebp - 0x44]
add esi, 0x20
cmp esi, dword [ebp - 0x18]
jne 0x408044
mov byte [ebp - 0x3d], 0
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408150
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.004096c0
mov ecx, dword [ebp - 0x14]
add esp, 4
sub ecx, ebx
mov eax, ebx
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x408146
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40817e
push ecx
push ebx
call fcn.0040a1f6
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4081fa
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4081f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4081f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408199
xor edi, edi
jmp 0x4081ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
test edi, edi
setne byte [ebp - 0x3d]
cmp edx, 0x10
jb 0x40810f
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4081e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4081e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040a1f6
add esp, 8
jmp 0x40810f
push edx
push ecx
call fcn.0040a1f6
add esp, 8
mov al, byte [ebp - 0x3d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409d8d
mov esp, ebp
pop ebp
ret