Function at 0x1400f1c00
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rcx
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test eax, eax
jns 0x1400f1c68
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._Error__CoInitializeEx_failed_with_HRESULT:
call fcn.14001b810
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x14010e224]
call fcn.14001b810
xor al, al
jmp 0x1400f20b4
call fcn.1400f2de0
mov edi, eax
test eax, eax
je 0x1400f1ca3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._Error__UIAccess_error:_0x
call fcn.14001b810
lea rdx, [0x140082320]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x1400f1c52
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400f1cd2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._Error__Failed_to_load_user32.dll_n
call fcn.14001b810
xor al, al
jmp 0x1400f20b4
lea rdx, str.CreateWindowInBand
mov qword [rsp + 0x170], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x1400f1d15
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._Error__Failed_to_locate_CreateWindowInBand_n
call fcn.14001b810
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1400f20ac
lea rax, [0x1400f22a0]
mov qword [rsp + 0x168], rsi
mov qword [rsp + 0x178], r15
xor ecx, ecx
xor r15d, r15d
mov dword [rbp - 0x70], 0x50
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x6c], 0x40
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rsi, [rbx + 0xc0]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x58], rax
cmp qword [rsi + 0x18], 7
mov rax, rsi
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm1
jbe 0x1400f1d75
mov rax, qword [rsi]
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r15
call qword [sym.imp.USER32.dll_RegisterClassExW]
movzx edx, ax
test ax, ax
jne 0x1400f1da7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._Error__Failed_to_register_window_class_n
call fcn.14001b810
jmp 0x1400f2091
cmp dword [rbx + 0x1b0], 1
jne 0x1400f1e71
mov rax, qword [rbp - 0x58]
lea r8, str.Dear_ImGui_DirectX11_Example
mov dword [rsp + 0x60], 2
mov r9d, 0x80000000
mov qword [rsp + 0x58], r15
mov ecx, 0x8000028
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x320
mov dword [rsp + 0x30], 0x500
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
call r14
mov rsi, rax
test rax, rax
jne 0x1400f1e5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._Error__CreateWindowInBand_failed_with_error:_0x
mov ebx, eax
call fcn.14001b810
lea rdx, [0x140082320]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14010e224]
call fcn.14001b810
jmp 0x1400f2083
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
jmp 0x1400f1eec
cvttss2si ecx, dword [rbx + 0xec]
lea r8, [rbx + 0x80]
cmp qword [r8 + 0x18], 7
cvttss2si edx, dword [rbx + 0xe8]
cvttss2si r9d, dword [rbx + 0xe4]
cvttss2si r10d, dword [rbx + 0xe0]
jbe 0x1400f1ea4
mov r8, qword [r8]
cmp qword [rsi + 0x18], 7
jbe 0x1400f1eae
mov rsi, qword [rsi]
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], ecx
xor ecx, ecx
mov dword [rsp + 0x30], edx
mov rdx, rsi
mov dword [rsp + 0x28], r9d
mov r9d, 0xa0000
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov rax, qword [rbp - 0x58]
lea r14, [0x1401ac050]
mov qword [rbx + 0x58], rax
xor r9d, r9d
mov qword [rbx + 0x50], rsi
lea rax, [rsp + 0x70]
mov qword [rbp + 0x10], rsi
xor r8d, r8d
mov qword [rbp - 0xc], r15
lea rsi, [0x1401ac058]
mov qword [rsp + 0x58], rsi
mov edx, 1
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x48], r14
lea rax, [rbp - 0x20]
mov qword [rbp - 0x20], r15
lea r15, [0x1401ac060]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov qword [rbp + 8], 2
mov qword [rbp + 0x20], 2
mov dword [rbp - 0x10], 0x1c
mov dword [rbp - 0x18], 0x3c
mov dword [rbp - 0x14], 1
mov dword [rbp + 4], 0x20
mov qword [rbp - 4], 1
mov qword [rbp + 0x18], 1
mov dword [rsp + 0x78], 0xb000
mov dword [rsp + 0x7c], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x1400f200a
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], r14
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, 5
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x1400f207e
mov rcx, qword [0x1401ac060]
lea r9, [rbp - 0x80]
lea r8, [0x140111fb0]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x1400f2052
mov rcx, qword [0x1401ac050]
lea r9, [0x1401ac068]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x50]
mov edx, 0xa
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp qword [rbx + 0x50], 0
setne al
jmp 0x1400f209c
call fcn.1400f1200
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov rsi, qword [rsp + 0x168]
mov r15, qword [rsp + 0x178]
mov r14, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400f3ce0
add rsp, 0x140
pop rdi
pop rbx
pop rbp
ret