Function at 0x140046500
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rbp + 8]
call fcn.1400459d0
nop
mov dword [rbp - 0x50], 0x50
mov dword [rbp - 0x4c], 0x40
lea rax, [0x140046a90]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm1
lea rax, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rax, qword [rbp + 8]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdi
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [rbx + 0x1b0], 1
jne 0x140046619
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0x80000000
lea r8, [0x1400520e0]
mov ecx, 0x80028
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx + 0x50], rax
lea r9d, [rdi + 2]
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
jmp 0x14004668e
cvttss2si ecx, dword [rbx + 0xec]
cvttss2si r8d, dword [rbx + 0xe8]
cvttss2si r9d, dword [rbx + 0xe4]
cvttss2si r10d, dword [rbx + 0xe0]
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
mov qword [rsp + 0x58], rdi
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r10d
mov r9d, 0xa0000
lea r8, [0x1400520e0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx + 0x50], rax
mov rax, qword [rbp - 0x38]
mov qword [rbx + 0x58], rax
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x74], rdi
mov qword [rbp - 0x78], 2
mov qword [rbp - 0x60], 2
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x70], 0x1c
mov dword [rsp + 0x68], 0x3c
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x7c], 0x20
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x7c], 1
mov qword [rbp - 0x68], 1
mov dword [rbp + 0x28], 0xb000
mov dword [rbp + 0x2c], 0xa000
lea r14, [0x14005c480]
mov qword [rsp + 0x58], r14
lea rax, [rbp]
mov qword [rsp + 0x50], rax
lea rsi, [0x14005c478]
mov qword [rsp + 0x48], rsi
lea r15, [0x14005c488]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x1400467ac
mov qword [rsp + 0x58], r14
lea rax, [rbp]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x1400467db
mov rcx, rsi
call fcn.140045ac0
mov edx, 0xa
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [rbx + 0x50], 0
setne bl
jmp 0x14004684f
mov rcx, qword [0x14005c490]
test rcx, rcx
je 0x1400467f4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005c490], rdi
mov rcx, qword [0x14005c488]
test rcx, rcx
je 0x14004680d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005c488], rdi
mov rcx, qword [0x14005c480]
test rcx, rcx
je 0x140046826
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005c480], rdi
mov rcx, qword [0x14005c478]
test rcx, rcx
je 0x14004683f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14005c478], rdi
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor bl, bl
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140046892
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004688d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004688d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140047c04
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400475f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret