Function at 0x1800013c0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x18005a040]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor esi, esi
cmp byte [0x18005aee0], sil
je 0x1800013f2
mov al, 1
jmp 0x18000177a
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
xor ecx, ecx
mov qword [rsp + 0x190], rbx
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x198], rdi
mov dword [rbp - 0x70], 0x50
mov dword [rbp - 0x6c], 3
mov qword [rbp - 0x60], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
mov qword [rbp - 0x28], rsi
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm0
lea rdi, str.Decode
movdqa xmmword [rbp - 0x40], xmm1
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x30], rdi
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [rbp - 0x58]
mov r9d, 0xcf0000
mov rdx, qword [rbp - 0x30]
mov r8, rdi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea rcx, str.d3d11.dll
mov qword [0x18005ad78], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, qword [rsp + 0x198]
test rax, rax
jne 0x1800014e5
xor r9d, r9d
lea r8, [0x18004b850]
lea rdx, str._libD3D11__::GetModuleHandle_TEXT__d3d11.dll______NULL
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1800016fd
lea rdx, str.D3D11CreateDeviceAndSwapChain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x18000151b
xor r9d, r9d
lea r8, [0x18004b850]
lea rdx, str.D3D11CreateDeviceAndSwapChain__::GetProcAddress_libD3D11___D3D11CreateDeviceAndSwapChain_____NULL
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1800016fd
xor ecx, ecx
mov dword [rbp + 0x48], 0xa100
mov dword [rbp + 0x4c], 0xb000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov dword [rbp + 0x50], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor r9d, r9d
mov dword [rbp + 0x58], 0xaa
mov dword [rbp + 0x54], eax
xor r8d, r8d
mov rax, qword [0x18005ad78]
xor ecx, ecx
mov qword [rbp + 0x10], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x58], rax
lea edx, [r9 + 1]
lea rax, [rbp + 0x40]
mov dword [rbp + 0x5c], 1
movups xmm0, xmmword [rbp + 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x48]
mov dword [rsp + 0x30], 7
mov qword [rbp + 0x60], 0x1c
movsd xmm1, qword [rbp + 0x60]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
movaps xmmword [rbp - 0x20], xmm0
movsd qword [rbp - 0x10], xmm1
mov dword [rbp - 8], esi
mov qword [rbp - 4], 1
mov dword [rbp + 4], 0x20
mov dword [rbp + 8], 1
mov qword [rbp + 0x18], 1
mov dword [rbp + 0x20], 2
call rbx
mov ecx, eax
test eax, eax
je 0x18000171c
lea r9, [rbp + 0x65]
test eax, eax
jns 0x180001650
neg ecx
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r9], cl
mov ecx, edx
test edx, edx
jne 0x180001610
dec r9
mov byte [r9], 0x2d
jmp 0x180001679
dec r9
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r9], cl
mov ecx, edx
test edx, edx
jne 0x180001650
lea r8, [rbp + 0x65]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.180001e90
cmp qword [rsp + 0x78], 0xf
lea rdx, [rsp + 0x60]
lea r8, str.D3D11CreateDeviceAndSwapChain
cmova rdx, qword [rsp + 0x60]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1800016ed
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800016e8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800016e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180048b34
mov edx, 0x64
mov ecx, 0x384
call qword [sym.imp.KERNEL32.dll_Beep]
mov rcx, qword [0x18005ad78]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor al, al
jmp 0x180001772
mov edx, 8
mov ecx, 0xcd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
lea rcx, str.dxgi.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, qword [rbp - 0x78]
lea rdx, [0x1800017a0]
mov r8d, 8
call fcn.1800012c0
mov qword [0x18005ad68], rax
mov al, 1
mov rbx, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180048ad0
mov rsi, qword [rsp + 0x1a0]
add rsp, 0x180
pop rbp
ret