Function at 0x6ff220
Capabilities:
Hide graphical window
Inspect section memory permissions

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edx, dword [esp + 0x14]
mov ebx, ecx
shr ebx, 7
and ebx, 0x40
or ebx, ecx
mov eax, edx
shr eax, 7
and eax, 0x40
or eax, edx
xor ebx, eax
je 0x6ff494
mov ebp, eax
test dl, 0x10
je 0x6ff267
xor eax, eax
test ecx, 0x200000
sete al
xor eax, 5
push eax
push esi
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
test bl, 0xc0
je 0x6ff2b1
mov eax, ebp
test al, 0x40
jne 0x6ff280
mov eax, edx
shr al, 7
movzx eax, al
lea eax, [eax + eax*2 - 2]
jmp 0x6ff28d
mov eax, 0xffffffff
test dl, dl
js 0x6ff499
push 0x4013
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.user32.dll_SetWindowPos]
push 0
push 0
push esi
call dword [sym.imp.user32.dll_InvalidateRgn]
mov edx, dword [esp + 0x14]
mov eax, ebx
or eax, edx
test eax, 0x800
jne 0x6ff2e3
mov edi, 1
test ebx, 0x20000
jne 0x6ff313
test al, 8
jne 0x6ff33e
test dl, 0x10
je 0x6ff36b
test edi, edi
jne 0x6ff37c
jmp 0x6ff494
mov edi, eax
test edx, 0x800
mov eax, 9
mov ecx, 3
cmove ecx, eax
push ecx
push esi
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
mov eax, edi
mov edi, 1
test ebx, 0x20000
je 0x6ff2c9
xor eax, eax
test edx, 0x20000
sete al
lea eax, [eax + eax*2 + 6]
push eax
push esi
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [esp + 0x14]
and ebx, 0xfffdffff
mov eax, ebx
mov edi, ebx
or eax, edx
test al, 8
je 0x6ff2cd
mov ebx, edx
not ebx
shr ebx, 2
and ebx, 2
push 0
push esi
call dword [sym.imp.user32.dll_GetSystemMenu]
push ebx
push 0xf060
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
mov edx, dword [esp + 0x14]
test dl, 0x10
jne 0x6ff2d6
push 0
push esi
call dword [sym.imp.user32.dll_ShowWindow]
test edi, edi
je 0x6ff494
mov ecx, 0x9195c4
call fcn.006fd340
push 0
push 1
push eax
push esi
call sub.user32.dll_SendMessageW
mov edx, dword [esp + 0x14]
test edx, 0x20000
jne 0x6ff45c
mov eax, edx
mov ecx, edx
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.user32.dll_SetWindowLongW]
and eax, 2
and ecx, 4
shl eax, 0x10
shl ecx, 0xe
or ecx, eax
mov eax, edx
and eax, 0x10
and edi, 1
shl eax, 0x18
shl edi, 0x12
or eax, ecx
mov ecx, edx
shl ecx, 0x14
and ecx, 0x40000000
or ecx, eax
mov eax, edx
shl eax, 0x13
and eax, 0x80000000
or eax, ecx
mov ecx, edx
shl ecx, 0xc
and ecx, 0x20000000
or ecx, eax
mov eax, ebp
shl eax, 0xd
lea edi, [edi + ecx + 0x6c80000]
mov edx, eax
and edx, 0x1000000
or edi, edx
mov edx, dword [esp + 0x14]
mov ecx, edi
and ecx, 0xff30ffff
test dword [esp + 0x14], 0x6000
cmove ecx, edi
shr ebp, 3
and edx, 0x20
and eax, 0x200000
mov edi, 0x80130
and ebp, 8
shl edx, 0xd
or edx, ebp
or edx, eax
test dword [esp + 0x14], 0x40000
mov eax, 0x110
cmove edi, eax
or edi, edx
push ecx
push 0xfffffffffffffff0
push esi
call ebx
push edi
push 0xffffffffffffffec
push esi
call ebx
mov edx, dword [esp + 0x14]
xor eax, eax
test edx, 0x6000
sete al
shl eax, 4
or eax, 0x27
push eax
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.user32.dll_SetWindowPos]
mov ecx, 0x9195c4
call fcn.006fd340
push 0
push 0
push eax
push esi
call sub.user32.dll_SendMessageW
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowswindow_state.rs
mov edx, 0x28
push 0x8f8240
call fcn.0070a0f0
add esp, 4
ud2