Function at 0x140001668
Capabilities:
Accept command line arguments
Inspect load icon resource

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rbx, rcx
mov qword [0x140025ac0], rcx
xor ecx, ecx
mov byte [0x140025ad0], 0
call qword [sym.imp.ole32.dll_CoInitialize]
nop dword [rax + rax]
call fcn.140003d14
call fcn.140007128
call fcn.140006664
and dword [rbp + 0x17], 0
lea rax, [0x140001920]
and dword [rbp + 0x1b], 0
mov edi, 0x64
mov edx, edi
mov qword [rbp + 0xf], rax
mov rcx, rbx
mov dword [rbp + 7], 3
mov qword [rbp + 0x1f], rbx
call qword [sym.imp.USER32.dll_LoadIconA]
nop dword [rax + rax]
mov edx, edi
mov rcx, rbx
mov qword [rbp + 0x27], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
nop dword [rax + rax]
lea rdi, [0x14001f7bc]
mov qword [rbp + 0x37], InitCommonControls
mov qword [rbp + 0x2f], rax
lea rcx, [rbp + 7]
lea rax, str.Menu
mov qword [rbp + 0x47], rdi
mov qword [rbp + 0x3f], rax
call qword [sym.imp.USER32.dll_RegisterClassA]
nop dword [rax + rax]
and qword [rsp + 0x58], 0
lea r8, str.DirectX_Caps_Viewer
mov qword [rsp + 0x50], rbx
mov eax, 0x80000000
and qword [rsp + 0x48], 0
mov r9d, 0xcf0000
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], 0x190
xor ecx, ecx
mov dword [rsp + 0x30], 0x2bc
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
nop dword [rax + rax]
mov qword [0x140025aa8], rax
test rax, rax
jne 0x14000179b
call qword [sym.imp.ole32.dll_CoUninitialize]
nop dword [rax + rax]
or rax, 0xffffffffffffffff
jmp 0x1400018f5
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
nop dword [rax + rax]
mov r9b, 0x22
mov r8b, 0x20
mov rcx, rax
mov al, byte [rax]
cmp al, r9b
jne 0x1400017eb
inc rcx
mov dl, byte [rcx]
test dl, dl
je 0x1400017d4
mov al, dl
mov dl, al
cmp al, r9b
je 0x1400017d4
inc rcx
mov dl, byte [rcx]
mov al, dl
test dl, dl
jne 0x1400017c2
lea rax, [rcx + 1]
cmp dl, r9b
cmovne rax, rcx
mov rcx, rax
mov al, byte [rax]
jmp 0x1400017f0
inc rcx
mov al, byte [rcx]
cmp al, r8b
jg 0x1400017e6
test al, al
je 0x140001808
mov dl, al
mov al, dl
cmp dl, r8b
jg 0x140001808
inc rcx
mov al, byte [rcx]
mov dl, al
test al, al
jne 0x1400017f6
lea r10, [0x140025ad0]
mov rdx, r10
cmp al, r9b
je 0x14000188c
cmp al, r8b
jle 0x14000182c
sub rcx, r10
mov byte [rdx], al
inc rdx
mov al, byte [rcx + rdx]
cmp al, r8b
jg 0x14000181f
mov byte [rdx], 0
or rax, 0xffffffffffffffff
inc rax
cmp byte [r10 + rax], 0
jne 0x140001833
mov rcx, qword [0x140025aa8]
test rax, rax
je 0x140001897
xor r9d, r9d
mov edx, 0x111
mov r8d, 0x9c47
call qword [sym.imp.USER32.dll_PostMessageA]
nop dword [rax + rax]
mov rcx, qword [0x140025aa8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageA]
nop dword [rax + rax]
jmp 0x1400018ca
cmp al, r9b
je 0x14000182c
mov byte [rdx], al
inc rdx
inc rcx
mov al, byte [rcx]
test al, al
jne 0x140001882
jmp 0x14000182c
mov edx, 3
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
jmp 0x1400018ca
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [rax + rax]
xor r9d, r9d
lea rcx, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
nop dword [rax + rax]
test eax, eax
jne 0x1400018aa
call qword [sym.imp.ole32.dll_CoUninitialize]
nop dword [rax + rax]
mov eax, dword [rbp - 0x19]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret