Function at 0x40d670
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acff0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x9c], eax
mov edi, dword [ebx + 8]
lea edx, [ebp - 0x94]
mov esi, dword [ebx + 0xc]
push 0
push ecx
push edx
push ecx
push ecx
push 1
push ecx
xor edx, edx
mov dword [ebp - 0xa8], edi
mov ecx, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x94], 1
call fcn.00416a40
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x40dbf2
push str.exit_r_n
push esi
push edi
lea eax, [ebp - 0x5c]
push str.__s___s_r_n_s
push eax
call fcn.0041a7f0
add esp, 0x14
mov esi, dword [ebp - 0x9c]
xor eax, eax
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d744
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404350
mov byte [ebp - 4], 1
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 3
jb 0x40dc3f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push 3
push 0x4c5478
push ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x8c]
call fcn.0040ab20
mov byte [ebp - 4], 2
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x8c]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
cmovae edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x94], 0x1770
cmovae eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
push edi
push 0x4c5480
call esi
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40d86b
push dword [ebp - 0x98]
push 0x4c5480
call esi
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40d86b
push edi
push eax
call esi
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40d86b
push dword [ebp - 0x98]
push eax
call esi
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40d86b
push edi
push str.CASCADIA_HOSTING_WINDOW_CLASS
call esi
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40d86b
push dword [ebp - 0x98]
push str.CASCADIA_HOSTING_WINDOW_CLASS
call esi
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40d86b
mov ecx, dword [ebp - 0x94]
mov eax, ecx
dec ecx
mov dword [ebp - 0x94], ecx
test eax, eax
jle 0x40dae8
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d7d0
lea ecx, [ebp - 0x6c]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x6c], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0
push eax
push edi
mov edi, dword [ebp - 0x90]
push 0
push 0
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80080
push eax
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
push 0x4bf508
push 1
push 0
push 0x4bf518
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40d921
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x40d921
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x90]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 2
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call esi
push 3
push edi
call esi
lea ecx, [ebp - 0x74]
call fcn.00411700
push ecx
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00419f10
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x40d990
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d986
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc44
push edx
push ecx
call fcn.0044b3bd
add esp, 8
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmovae eax, dword [ebp - 0x44]
push str.Windows_7
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call esi
test eax, eax
jne 0x40d9e0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push str.Windows_8
cmovae eax, dword [ebp - 0x44]
push eax
call esi
mov dword [ebp - 0x94], 0
test eax, eax
je 0x40d9ea
mov dword [ebp - 0x94], 1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push str.Windows_11
cmovae eax, dword [ebp - 0x44]
push eax
call esi
mov ecx, edi
mov esi, eax
call fcn.0042da00
lea edx, [ebp - 0x5c]
test esi, esi
je 0x40da22
cmp dword [ebp - 0x48], 8
push ecx
cmovae edx, dword [ebp - 0x5c]
mov ecx, edi
call fcn.0042d700
add esp, 4
jmp 0x40da3c
cmp dword [ebp - 0x48], 8
mov ecx, edi
push 0xffffffffffffffff
push dword [ebp - 0x94]
cmovae edx, dword [ebp - 0x5c]
call fcn.0042d840
add esp, 8
mov edi, dword [ebp - 0xa8]
mov edx, 0x100401
mov ecx, edi
mov esi, 3
call fcn.00425800
test eax, eax
jne 0x40da79
mov eax, esi
dec esi
test eax, eax
jle 0x40da8e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x100401
mov ecx, edi
call fcn.00425800
test eax, eax
je 0x40da57
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov dword [ebp - 0xa0], 1
jmp 0x40da94
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40dad2
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dac8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc49
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x40daee
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa4]
call edi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x40db37
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40db2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc4e
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp edx, 8
jb 0x40db8b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40db81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc4e
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x40dbdc
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc4e
push edx
push ecx
call fcn.0044b3bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
jmp 0x40dbf8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [ebp - 0x9c]
call fcn.00425bc0
mov esi, eax
add esp, 4
test esi, esi
je 0x40dc19
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00401570
call fcn.0047aa50
call fcn.0047aa50
call fcn.0047aa50
int3