Function at 0x1000cb70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001492b
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x1001b00c]
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 dword [ebp - 0x4a0], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0x4a4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x4a4]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0x410
call esi
mov edi, eax
test edi, edi
je 0x1000d063
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x1000d05c
xor eax, eax
mov dword [ebp - 0x480], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x480], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cc30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.100092c0
push 0x104
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x4a0], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x468], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
lea edx, [ecx + 2]
mov word [ebp - 0x468], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cca7
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.100092c0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x480]
mov ebx, 0x13
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x4a0], ebx
call fcn.1000c9c0
test al, al
jne 0x1000ce00
xor eax, eax
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x450], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cd24
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.100092c0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x450]
mov ebx, 0x17
mov dword [ebp - 0x4a0], ebx
call fcn.1000c880
test al, al
jne 0x1000ce00
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x428], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x424], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cd92
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.100092c0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push str.CTEGame_
cmovae eax, dword [ebp - 0x438]
mov ebx, 0x1f
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x1000ce00
lea eax, [ebp - 0x218]
push str.C:WindowsSystem32ApplicationFrameHost.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov byte [ebp - 0x499], 1
test eax, eax
jne 0x1000ce07
mov byte [ebp - 0x499], 0
test bl, 8
je 0x1000ce6c
mov edx, dword [ebp - 0x424]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x1000ce4f
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ce45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf7e
push edx
push ecx
call fcn.10012b5f
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 4], 1
test bl, 4
je 0x1000ced8
mov edx, dword [ebp - 0x43c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x1000cebb
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ceb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf7e
push edx
push ecx
call fcn.10012b5f
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov dword [ebp - 4], 0
test bl, 2
je 0x1000cf40
mov edx, dword [ebp - 0x454]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x1000cf23
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000cf19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf7e
push edx
push ecx
call fcn.10012b5f
add esp, 8
xor eax, eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1000cf8e
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x1000cf8e
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000cf84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000cf84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10012b5f
add esp, 8
cmp byte [ebp - 0x499], 0
je 0x1000d05c
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x488], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x484], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cfc2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x498]
call fcn.100092c0
lea ecx, [ebp - 0x498]
call fcn.1000c7c0
mov edx, dword [ebp - 0x484]
test al, al
sete bl
cmp edx, 8
jb 0x1000d036
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000d02c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d02c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10012b5f
add esp, 8
test bl, bl
je 0x1000d05c
push dword [ebp - 0x4a4]
push 0
push 1
call esi
mov esi, eax
test esi, esi
je 0x1000d05c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.10012545
mov esp, ebp
pop ebp
ret