Function at 0x14002cd64
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa38
xor r12d, r12d
movaps xmmword [rax - 0x58], xmm6
mov al, 0x2a
movzx r13d, al
lea eax, [r12 + 0x2d]
lea r14d, [r12 + 1]
cmp ax, word [rdx]
mov rbp, rdx
mov rbx, rcx
cmove r13d, eax
mov r15b, 0xff
mov dil, r12b
mov byte [rsp + 0xa90], r12b
mov sil, r12b
mov byte [rsp + 0xa98], r12b
mov word [rsp + 0x9c], r14w
mov dword [rsp + 0x74], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x70], r13d
cmp r13b, byte [rdx]
jne 0x14002ce4e
lea rax, [rdx + 2]
lea r8d, [r12 + 4]
lea rcx, [0x1400fdc88]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.14001bdcc
cmp al, r12b
je 0x14002ce46
lea rdx, [0x1400fdc60]
lea rcx, [rsp + 0xa90]
call fcn.140064d14
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xa90]
call fcn.14005a28c
mov rdx, qword [rsp + 0xa90]
mov rcx, rbx
call fcn.140045210
mov rbx, rax
lea rcx, [rsp + 0xa90]
jmp 0x14002e846
mov rbp, qword [rsp + 0xa88]
cmp r13b, byte [rbp]
jne 0x14002d0d5
lea rax, [rbp + 2]
lea rdx, [rsp + 0x58]
lea rcx, [0x1400fdc50]
mov r8d, 7
mov qword [rsp + 0x58], rax
call fcn.14001bdcc
cmp al, r12b
je 0x14002d0d0
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
mov qword [rsp + 0xa88], rdi
call qword [sym.imp.USER32.DLL_CharUpperW]
mov rcx, qword [rsp + 0xa88]
movsx r8d, r13b
movzx eax, word [rcx]
mov esi, 2
xor r13d, r13d
lea r14d, [rsi + 0xb]
lea r12d, [rsi + 0x1e]
cmp r8d, eax
jne 0x14002cf07
lea edx, [rsi + 7]
jmp 0x14002cedf
cmp dx, ax
ja 0x14002cecb
cmp ax, r14w
jbe 0x14002cee5
cmp r12w, ax
je 0x14002cee5
add rcx, rsi
mov qword [rsp + 0xa88], rcx
mov ax, word [rcx]
cmp ax, r13w
jne 0x14002cec0
lea rcx, [rsp + 0xa88]
call fcn.1400157dc
mov rcx, qword [rsp + 0xa88]
mov edx, 9
movzx eax, word [rcx]
cmp r8d, eax
je 0x14002cedf
mov edx, 0x4f
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov ebp, 0x10
lea rcx, [rsp + 0xa90]
cmp rax, r13
lea edx, [rbp + 0x18]
mov ebx, r13d
cmovne ebx, ebp
call fcn.14005a1c4
mov rcx, qword [rsp + 0xa90]
lea rdx, [0x1400fdc38]
mov r8d, ebx
call qword [sym.imp.USER32.DLL_wsprintfW]
lea rdx, [0x1400fdc20]
lea rcx, [rsp + 0xa90]
call fcn.14005a28c
lea rcx, [rsp + 0xa90]
mov rdx, rdi
call fcn.14005a28c
mov rbp, qword [rsp + 0xa80]
lea r8, [0x1400f9548]
lea rdx, [0x1400fdc10]
mov rcx, rbp
call fcn.1400596c4
mov rcx, qword [0x140115220]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rsp + 0xf0]
mov ebx, eax
call fcn.140059e74
lea ecx, [rbx + 8]
movsxd rdx, ecx
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0x100], r13
call fcn.14005a250
mov rdx, qword [0x140115220]
mov rcx, qword [rsp + 0xf0]
lea r11d, [rbx + 1]
movsxd r8, r11d
add r8, r8
call fcn.14001b7a8
mov rcx, qword [rsp + 0xf0]
jmp 0x14002d01d
cmp byte [rcx], 0x5c
jne 0x14002d01a
cmp byte [rcx + 2], 0x6e
jne 0x14002d00d
mov word [rcx], r14w
add rcx, rsi
mov eax, 0xa
mov word [rcx], ax
jmp 0x14002d01a
cmp byte [rcx + 2], 0x5c
jne 0x14002d01a
mov word [rcx], r12w
add rcx, rsi
add rcx, rsi
cmp word [rcx], r13w
jne 0x14002cff1
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rcx, eax
add rcx, rcx
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0xf8], rcx
call fcn.140019434
mov rcx, qword [rsp + 0xf0]
movzx edi, ax
lea eax, [rbx + 2]
movsxd r8, eax
mov edx, edi
call fcn.1400194d0
mov rbx, qword [rsp + 0xf0]
lea rdx, [0x1400fdc04]
lea rcx, [rsp + 0xa98]
or r8, 0xffffffffffffffff
mov qword [rsp + 0xf0], r13
call fcn.140064d54
mov r8, qword [rsp + 0xa90]
mov qword [rsp + 0x30], r13
mov r9, qword [rax]
shl edi, 0x10
mov rdx, rbx
or edi, 0x40
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], edi
call fcn.1400b49bc
lea rcx, [rsp + 0xa98]
mov rbx, rax
call fcn.140052160
lea rcx, [rsp + 0xf0]
call fcn.140052160
jmp 0x14002ce39
mov rbp, qword [rsp + 0x58]
lea r9, [0x140117e48]
lea r8, [0x140117e60]
lea rdx, [0x1400fdbf8]
lea rcx, [0x1400fdbe0]
mov byte [rsp + 0x50], r12b
call fcn.1400536e0
xor edx, edx
lea rcx, [rsp + 0x212]
lea r8d, [rdx + 0x3e]
mov word [rsp + 0x210], r12w
call fcn.1400dd9e0
lea rcx, [rsp + 0x250]
xor edx, edx
mov r8d, 0x9c
call fcn.1400dd9e0
mov eax, 0xdc
lea rcx, [rsp + 0xc0]
mov word [rsp + 0x254], ax
mov dword [rsp + 0x2bc], 0x280
mov dword [rsp + 0x2c0], 0x1e0
mov dword [rsp + 0x2b8], 4
mov dword [rsp + 0x2c8], r14d
mov dword [rsp + 0x60], r12d
call fcn.14005a150
lea rcx, [rsp + 0xb0]
call fcn.14005a150
mov rdx, qword [rsp + 0xa88]
mov ebx, 2
movzx ecx, word [rdx]
xor r10d, r10d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x58], r12
lea r8d, [rbx + 7]
lea r14d, [rbx + 0xb]
lea r12d, [rbx + 0x1e]
lea r9d, [rbx + 4]
cmp cx, r10w
je 0x14002d798
movsd xmm6, qword [0x1400fdbd8]
mov eax, 0x2d
xor esi, esi
cmp ax, cx
jne 0x14002d209
cmp ax, word [rdx + 2]
jne 0x14002d209
movzx eax, word [rdx + 4]
cmp ax, si
je 0x14002d66a
cmp r8w, ax
ja 0x14002d1ff
cmp ax, r14w
jbe 0x14002d66a
cmp r12w, ax
je 0x14002d66a
movzx ecx, cx
movsx eax, r13b
cmp eax, ecx
jne 0x14002d788
add rdx, rbx
lea rcx, [0x1400fdbd0]
mov r8d, r9d
mov qword [rsp + 0xa88], rdx
lea rdx, [rsp + 0xa88]
call fcn.14005c928
cmp al, sil
je 0x14002d253
mov eax, 1
mov dil, al
mov byte [rsp + 0xa90], al
jmp 0x14002d5f5
mov edi, 6
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdbc8]
mov r8d, edi
call fcn.14005c928
cmp al, sil
je 0x14002d28e
lea eax, [rdi - 5]
mov dil, byte [rsp + 0xa90]
mov sil, al
mov byte [rsp + 0xa98], al
jmp 0x14002d5fd
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdbc0]
mov r8d, 7
call fcn.14005c928
cmp al, sil
je 0x14002d2c6
cmp r15b, sil
mov dil, byte [rsp + 0xa90]
jge 0x14002d5f5
mov r15b, 1
jmp 0x14002d5f5
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdbb0]
mov r8d, 8
call fcn.14005c928
cmp al, sil
je 0x14002d2fe
cmp r15b, sil
mov dil, byte [rsp + 0xa90]
jge 0x14002d5f5
mov r15b, sil
jmp 0x14002d5f5
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdba4]
mov r8d, 5
call fcn.14005c928
cmp al, sil
je 0x14002d329
mov dword [rsp + 0x9c], esi
jmp 0x14002d5ed
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdb9c]
mov r8d, 5
call fcn.14005c928
cmp al, sil
je 0x14002d35a
mov eax, 0xffff
mov word [rsp + 0x9c], ax
jmp 0x14002d5ed
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdb94]
mov r8d, 4
call fcn.14005c928
cmp al, sil
je 0x14002d386
mov dword [rsp + 0x74], 0x10000
jmp 0x14002d5ed
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdb90]
mov r8d, 3
call fcn.14005c928
cmp al, sil
je 0x14002d3b2
mov dword [rsp + 0x64], 0x20000
jmp 0x14002d5ed
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdb88]
mov r8d, edi
call fcn.14005ca04
cmp al, sil
je 0x14002d3d3
mov r12b, 0xff
jmp 0x14002d3fe
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdb78]
mov r8d, 7
call fcn.14005ca04
cmp al, sil
je 0x14002d622
mov eax, 1
mov r12b, al
cmp r12b, sil
movsd qword [rsp + 0xe0], xmm6
lea rcx, [rsp + 0xa88]
jle 0x14002d47a
call fcn.1400157dc
mov rcx, qword [rsp + 0xa88]
movzx eax, word [rcx]
mov rbp, rcx
cmp ax, si
je 0x14002d487
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x14002d440
cmp ax, r14w
jbe 0x14002d45b
cmp r8w, ax
je 0x14002d45b
add rcx, rbx
mov qword [rsp + 0xa88], rcx
mov ax, word [rcx]
cmp ax, si
je 0x14002d487
jmp 0x14002d435
cmp word [rcx], si
je 0x14002d487
mov word [rcx], si
add qword [rsp + 0xa88], rbx
lea rcx, [rsp + 0xa88]
call fcn.1400157dc
jmp 0x14002d487
lea rdx, [rsp + 0xe0]
call fcn.1400b585c
lea r9, [0x140117e58]
lea r8, [0x140117e68]
lea rdx, [0x1400fdb68]
lea rcx, [0x1400fdb50]
mov ebx, 0x80004001
call fcn.1400536e0
lea r9, [0x140117e58]
lea r8, [0x140117e70]
lea rdx, [0x1400fdb68]
lea rcx, [0x1400fdb38]
call fcn.1400536e0
xor ecx, ecx
call qword [sym.imp.USER32.DLL_GetDC]
lea rcx, [rsp + 0xc8]
mov edx, 0x600
mov rdi, rax
call fcn.140059ed8
mov rsi, qword [rsp + 0xc8]
xor r10d, r10d
lea r8, [rsi + 0x200]
lea r9, [rsi + 0x400]
cmp r12b, r10b
jg 0x14002d6d3
mov r10d, 1
cmp r12b, r10b
jge 0x14002d5b0
xor r12d, r12d
cmp qword [0x140117e68], r12
je 0x14002d5b3
mov ecx, r12d
mov rdx, rsi
sub r9, r8
lea r13d, [r10 + 1]
mov r11d, 0xffff
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [rsp + 0xe0]
addsd xmm0, qword [0x1400fdb30]
cvttsd2si rax, xmm0
cmp eax, r11d
cmova eax, r11d
add ecx, r10d
mov word [r9 + r8], ax
mov word [r8], ax
mov word [rdx], ax
add rdx, r13
add r8, r13
cmp ecx, 0x100
jl 0x14002d53f
mov r13d, dword [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call qword [0x140117e68]
mov esi, 1
cmp eax, esi
jne 0x14002d5a0
mov ebx, r12d
jmp 0x14002d5b3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp eax, r12d
cmove ebx, esi
jmp 0x14002d5b3
xor r12d, r12d
mov rax, qword [rsp + 0xa88]
lea rcx, [rsp + 0xc8]
cmp word [rax], r12w
je 0x14002d6b5
call fcn.140052160
cmp rdi, r12
je 0x14002d5e2
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.DLL_ReleaseDC]
mov r12d, 0x20
lea ebx, [r12 - 0x1e]
mov dil, byte [rsp + 0xa90]
mov sil, byte [rsp + 0xa98]
mov rdx, qword [rsp + 0xa88]
xor r10d, r10d
mov cx, word [rdx]
cmp cx, r10w
je 0x14002d798
lea r8d, [r10 + 9]
lea r9d, [r10 + 6]
jmp 0x14002d1d0
mov rcx, qword [rsp + 0xa88]
movzx eax, word [rcx]
cmp ax, si
je 0x14002d65b
mov edx, 9
cmp dx, ax
ja 0x14002d642
cmp ax, r14w
jbe 0x14002d65b
cmp r12w, ax
je 0x14002d65b
add rcx, rbx
mov qword [rsp + 0xa88], rcx
mov ax, word [rcx]
cmp ax, si
jne 0x14002d637
lea rcx, [rsp + 0xa88]
call fcn.1400157dc
jmp 0x14002d5ed
xor ebp, ebp
jmp 0x14002d68b
cmp r8w, ax
ja 0x14002d67a
cmp ax, r14w
jbe 0x14002d693
cmp r12w, ax
je 0x14002d693
add rdx, rbx
mov qword [rsp + 0xa88], rdx
movzx eax, word [rdx]
cmp ax, bp
jne 0x14002d66e
lea rcx, [rsp + 0xa88]
call fcn.1400157dc
mov dil, byte [rsp + 0xa90]
mov sil, byte [rsp + 0xa98]
jmp 0x14002d79a
call fcn.140052160
cmp rdi, r12
je 0x14002e831
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.DLL_ReleaseDC]
jmp 0x14002e831
mov rax, qword [0x140117e70]
xor r12d, r12d
mov word [rsp + 0xf0], r12w
cmp rax, r12
je 0x14002d763
mov rdx, rsi
mov rcx, rdi
call rax
lea r13d, [r12 + 1]
cmp eax, r13d
jne 0x14002d702
mov ebx, r12d
jmp 0x14002d716
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, r12d
mov ebx, eax
cmove ebx, r13d
cmp ebx, r12d
jne 0x14002d763
mov rdx, r12
mov rcx, r12
movzx eax, word [rsi + rcx*2]
add rcx, r13
add rdx, rax
cmp rcx, 0x300
jl 0x14002d71c
lea rcx, [rdx + 1]
movabs rax, 0x56ac0156ac0156ad
mul rcx
sub rcx, rdx
shr rcx, 1
lea r8, [rdx + rcx]
lea rdx, [0x1400f9d2c]
lea rcx, [rsp + 0xf0]
shr r8, 0x10
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rcx, qword [rsp + 0xa80]
lea r8, [rsp + 0xf0]
mov rdx, rbp
call fcn.1400596c4
lea rcx, [rsp + 0xc8]
jmp 0x14002d6b5
mov dil, byte [rsp + 0xa90]
mov sil, byte [rsp + 0xa98]
xor ebp, ebp
neg dil
mov ecx, 0x40000000
mov edi, 1
sbb eax, eax
lea rdx, [rsp + 0xa88]
mov r8d, edi
and eax, 0x10000000
cmp sil, bpl
cmovne eax, ecx
lea rcx, [0x1400fdb2c]
mov dword [rsp + 0xd0], eax
call fcn.1400521b4
cmp eax, ebp
je 0x14002d7db
mov sil, dil
jmp 0x14002d7fb
lea rdx, [rsp + 0xa88]
lea rcx, [0x1400fdb24]
mov r8d, ebx
call fcn.1400521b4
movzx esi, bpl
cmp eax, ebp
cmovne esi, ebx
or dword [rsp + 0x88], 0xffffffff
lea rcx, [rsp + 0x6d4]
xor edx, edx
mov r8d, 0x344
mov dword [rsp + 0x6d0], 0x348
call fcn.1400dd9e0
mov rcx, qword [rsp + 0xa88]
mov eax, 0x3d
mov qword [rsp + 0xe8], rcx
mov r15, rbp
mov qword [rsp + 0xd8], rbp
cmp ax, word [rcx]
jne 0x14002d907
add rcx, rbx
lea rdx, [rsp + 0x88]
mov qword [rsp + 0xa88], rcx
mov qword [rsp + 0xe8], rcx
lea rcx, [rsp + 0xe8]
call fcn.140068dd4
mov r11, qword [rsp + 0xa88]
movzx eax, word [r11]
cmp ax, bp
je 0x14002d8af
mov ecx, 9
cmp cx, ax
ja 0x14002d895
cmp ax, r14w
jbe 0x14002d8af
cmp r12w, ax
je 0x14002d8af
add r11, rbx
mov qword [rsp + 0xa88], r11
mov ax, word [r11]
cmp ax, bp
jne 0x14002d88a
lea rcx, [rsp + 0xa88]
call fcn.1400157dc
mov edx, dword [rsp + 0x88]
cmp edx, ebp
jge 0x14002d8d1
mov ebx, 0x80070057
jmp 0x14002e831
lea r8, [rsp + 0x6d0]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.DLL_EnumDisplayDevicesW]
cmp eax, ebp
jne 0x14002d8ef
mov ebx, edi
jmp 0x14002e831
mov rcx, qword [rsp + 0xa88]
lea r15, [rsp + 0x6d4]
mov qword [rsp + 0xd8], r15
cmp sil, bpl
je 0x14002d93c
mov rcx, qword [rsp + 0xa80]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xa88]
mov r9d, 0x2c
mov word [rsp + 0x20], bp
call fcn.14004bbf0
mov rcx, qword [rsp + 0xa88]
call qword [sym.imp.USER32.DLL_CharUpperW]
or dword [rsp + 0x54], 0xffffffff
or dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0xa0]
mov edx, 0x328
mov ebx, ebp
mov r13b, bpl
mov r14d, ebp
mov dword [rsp + 0x78], ebp
mov r12d, 0x64
call fcn.140059ed8
mov rdi, qword [rsp + 0xa88]
lea edx, [r12 - 0x11]
mov rcx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x48], rbp
call fcn.14001dbd4
mov qword [rsp + 0x48], rax
cmp rax, rbp
je 0x14002d9d1
or dword [rsp + 0x54], 0xffffffff
add rax, 2
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.140068dd4
cmp dword [rsp + 0x54], 0xffffffff
mov eax, 0x400
cmovne ebx, eax
cmp qword [rsp + 0x48], rdi
cmova rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa88]
mov edx, 0x50
call fcn.14001dbd4
mov r10d, 0x84
mov qword [rsp + 0x48], rax
cmp rax, rbp
je 0x14002da0a
cmp r15, rbp
je 0x14002da0a
cmp dword [rsp + 0x54], r10d
jne 0x14002da0a
bts ebx, 8
cmp rax, rdi
cmova rdi, rax
mov rcx, qword [rsp + 0xa88]
mov edx, pe_nt_image_headers64
call fcn.14001dbd4
mov qword [rsp + 0x48], rax
cmp rax, rbp
je 0x14002db15
mov ecx, dword [rsp + 0x54]
cmp ecx, r10d
je 0x14002da3b
cmp ecx, ebp
jg 0x14002db15
bts ebx, 9
jmp 0x14002dacc
add qword [rsp + 0x48], 2
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x48]
call fcn.140068dd4
cmp r14d, r12d
jg 0x14002da90
add r12d, 0x64
lea rcx, [rsp + 0xa0]
lea eax, [r12 + 1]
movsxd rdx, eax
shl rdx, 3
call fcn.140059f54
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rcx
jmp 0x14002da98
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rsp + 0xa98]
inc r14d
bts ebx, 8
mov dword [rcx + rbp], eax
mov eax, dword [rsp + 0x98]
add rbp, 8
mov dword [rcx + rbp - 4], eax
mov rax, qword [rsp + 0x48]
mov ecx, 0x3a
mov dword [rsp + 0x78], r14d
cmp cx, word [rax]
jne 0x14002db0c
mov ecx, 0x80000000
add rax, 2
lea rdx, [rsp + 0xa98]
mov dword [rsp + 0xa98], ecx
mov dword [rsp + 0x98], ecx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.140068dd4
mov ecx, 1
cmp eax, ecx
jge 0x14002da44
mov rax, qword [rsp + 0x48]
cmp rax, rdi
cmova rdi, rax
xor ebp, ebp
mov qword [rsp + 0xa88], rdi
cmp word [rdi], bp
jne 0x14002db2e
cmp ebx, ebp
jne 0x14002db2e
mov r13b, pe_nt_image_headers64
mov ebx, pe_nt_image_headers64
mov r12d, 2
mov dword [rsp + 0x70], ebp
cmp sil, r12b
je 0x14002db55
lea r8, [rsp + 0x210]
or edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.USER32.DLL_EnumDisplaySettingsW]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x3d0]
lea rdx, [rsp + 0x210]
mov r8d, 0xdc
call fcn.1400de630
mov eax, 1
mov qword [rsp + 0xb8], rbp
mov edi, ebp
cmp sil, al
je 0x14002dc15
xor edi, edi
cmp r13b, dil
jne 0x14002dbd8
cmp sil, dil
jne 0x14002dbd8
mov eax, dword [rsp + 0x488]
mov r13d, dword [rsp + 0x47c]
mov rsi, qword [rsp + 0xa80]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x480]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x478]
mov qword [rsp + 0x58], rax
jmp 0x14002de52
movzx r8d, word [rsp + 0x9c]
lea rcx, [rsp + 0xb8]
mov r9, r15
or r8d, dword [rsp + 0x64]
mov edx, 0x3e8
or r8d, dword [rsp + 0x74]
call fcn.140023594
mov rbp, qword [rsp + 0xb8]
xor r10d, r10d
mov edi, eax
mov eax, r10d
jmp 0x14002dca5
lea r13, [rsp + 0x210]
xor r8d, r8d
cmp dword [rsp + 0x64], r8d
jne 0x14002dd3b
cmp dword [rsp + 0x74], r8d
lea rax, [0x1400fdb18]
lea rdx, [0x1400fdb00]
cmovne rdx, rax
mov eax, dword [r13 + 0x54]
mov r9d, dword [r13 + 0xb0]
mov r8d, dword [r13 + 0xac]
mov dword [rsp + 0x30], eax
mov eax, dword [r13 + 0xb8]
lea rcx, [rsp + 0x590]
mov dword [rsp + 0x28], eax
mov eax, dword [r13 + 0xa8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.DLL_wsprintfW]
lea rdx, [rsp + 0x590]
lea rcx, [rsp + 0xb0]
call fcn.14005a28c
mov eax, 1
cmp sil, al
je 0x14002ddbb
mov eax, dword [rsp + 0x60]
inc eax
cmp eax, edi
mov dword [rsp + 0x60], eax
jge 0x14002ddbb
mov rcx, qword [rsp + 0x80]
movsxd r13, eax
imul r13, r13, 0xdc
imul rcx, qword [rsp + 0x68]
add r13, rbp
mov r11d, dword [r13 + 0xac]
mov r10d, dword [r13 + 0xb0]
mov edx, r11d
imul edx, r10d
cmp sil, r12b
je 0x14002dd8d
cmp rcx, rdx
ja 0x14002dc9f
imul rcx, qword [rsp + 0x58]
mov r9d, dword [r13 + 0xa8]
mov r8d, dword [r13 + 0xb8]
mov rax, r9
imul rcx, qword [rsp + 0x90]
imul rax, r8
imul rax, rdx
cmp rcx, rax
jae 0x14002dc9f
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x90], r8
jmp 0x14002dc9f
mov eax, dword [rsp + 0x74]
lea rcx, [0x1400fdae8]
lea rdx, [0x1400fdac8]
cmp eax, r8d
cmovne rdx, rcx
cmp eax, r8d
je 0x14002dc42
mov eax, dword [r13 + 0x54]
mov r9d, dword [r13 + 0xb0]
mov r8d, dword [r13 + 0xac]
lea rdx, [0x1400fdab0]
lea rcx, [rsp + 0x590]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.DLL_wsprintfW]
jmp 0x14002dc7c
mov rax, qword [rsp + 0xb0]
xor r8d, r8d
cmp word [rax], r8w
je 0x14002dc20
lea rdx, [0x1400fcdf0]
lea rcx, [rsp + 0xb0]
call fcn.14005a28c
jmp 0x14002dc1d
mov r13, qword [rsp + 0x68]
xor ecx, ecx
cmp sil, cl
jne 0x14002ddf0
cmp r13, rcx
ja 0x14002ddf0
lea rcx, [rsp + 0xb8]
call fcn.140052160
lea rcx, [rsp + 0xa0]
call fcn.140052160
mov ebx, 1
jmp 0x14002e831
mov rbp, qword [rsp + 0x80]
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x90]
mov dword [rsp + 0x480], ebp
mov dword [rsp + 0x478], eax
mov dword [rsp + 0x488], edi
mov dword [rsp + 0x47c], r13d
cmp sil, cl
jne 0x14002e7f6
mov rsi, qword [rsp + 0xa80]
lea rdx, [0x1400fda70]
mov r9d, ebp
mov r8d, r13d
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.1400172b0
xor edi, edi
mov ecx, dword [rsp + 0x54]
cmp ecx, 0xffffffff
je 0x14002de77
mov rax, qword [0x140117e60]
cmp rax, rdi
je 0x14002de77
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call rax
mov rcx, qword [rsp + 0xa88]
mov edx, 0x57
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x14002decd
or dword [rsp + 0x40], 0xffffffff
add rax, r12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1400b5934
mov r11d, dword [rsp + 0x40]
cmp r11d, edi
jle 0x14002decd
mov r13d, r11d
or ebx, 1
mov dword [rsp + 0x47c], r11d
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0xa88]
mov edx, 0x48
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x14002df26
or dword [rsp + 0x40], 0xffffffff
add rax, r12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1400b5934
mov r11d, dword [rsp + 0x40]
cmp r11d, edi
jle 0x14002df26
mov ebp, r11d
or ebx, r12d
mov dword [rsp + 0x480], r11d
mov qword [rsp + 0x80], rbp
mov rcx, qword [rsp + 0xa88]
mov edx, 0x42
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x14002df7e
or dword [rsp + 0x40], 0xffffffff
add rax, r12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1400b5934
mov r11d, dword [rsp + 0x40]
cmp r11d, edi
jle 0x14002df7e
mov edi, r11d
or ebx, 4
mov dword [rsp + 0x478], r11d
mov qword [rsp + 0x58], rdi
xor edi, edi
mov rcx, qword [rsp + 0xa88]
mov edx, 0x46
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x14002dfda
or dword [rsp + 0x40], 0xffffffff
add rax, r12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1400b5934
mov eax, 1
cmp dword [rsp + 0x40], eax
jle 0x14002dfda
mov edi, dword [rsp + 0x40]
or ebx, 8
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x488], edi
xor edi, edi
mov rcx, qword [rsp + 0xa88]
mov edx, 0x54
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x14002e033
cmp ebx, edi
je 0x14002e033
add rax, r12
lea r8, [rsp + 0xa90]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0xa90], edi
call qword [sym.imp.SHLWAPI.DLL_StrToIntExW]
movsxd rdx, dword [rsp + 0xa90]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.14001d848
mov rcx, qword [rsp + 0xa88]
mov edx, 0x4f
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov ebp, 0x10
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x14002e086
or dword [rsp + 0x40], 0xffffffff
add rax, r12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1400b5934
mov edi, dword [rsp + 0x40]
xor ecx, ecx
cmp edi, ecx
jl 0x14002e088
or ebx, ebp
mov dword [rsp + 0x424], edi
jmp 0x14002e08f
xor ecx, ecx
mov edi, dword [rsp + 0x424]
cmp ebx, ecx
jne 0x14002e0b8
lea rcx, [rsp + 0xb8]
call fcn.140052160
lea rcx, [rsp + 0xa0]
call fcn.140052160
xor r10d, r10d
mov ebx, r10d
jmp 0x14002e831
mov dword [rsp + 0x64], ecx
mov esi, ecx
mov dword [rsp + 0xa90], ecx
mov dword [rsp + 0x60], ecx
cmp bl, cl
je 0x14002e4d8
mov r15d, dword [rsp + 0x2c0]
cmp r13d, dword [rsp + 0x2bc]
jne 0x14002e0f7
cmp dword [rsp + 0x80], r15d
jne 0x14002e0f7
mov edx, 1
mov r14d, edx
jmp 0x14002e0ff
mov r14d, ecx
mov edx, 1
mov rax, qword [rsp + 0x58]
mov esi, ebx
mov r13d, ecx
cmp eax, dword [rsp + 0x2b8]
sete r13b
and esi, 8
je 0x14002e131
mov rax, qword [rsp + 0x90]
cmp eax, edx
jb 0x14002e131
mov r12d, ecx
cmp eax, dword [rsp + 0x2c8]
jne 0x14002e134
mov r12d, edx
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x3d0]
mov r8d, 0xdc
call fcn.1400de630
mov r11d, ebx
mov r10d, 1
and r11d, r10d
mov edx, ebx
mov r8d, ebx
and edx, 2
and r8d, 4
mov eax, ebx
and eax, ebp
xor r9d, r9d
shl r11d, 0x13
shl edx, 0x13
shl r8d, 0x10
shl eax, 3
cmp esi, r9d
mov rsi, qword [rsp + 0x90]
je 0x14002e193
mov ecx, 0x400000
cmp esi, r10d
ja 0x14002e196
mov ecx, r9d
or ecx, eax
or ecx, r8d
mov r8d, 0x1c0000
or ecx, edx
or ecx, r11d
cmove ecx, r8d
mov dword [rsp + 0x178], ecx
cmp eax, r9d
je 0x14002e220
mov eax, dword [rsp + 0x264]
and edi, r10d
and eax, r10d
cmp edi, eax
je 0x14002e1f4
cmp r11d, r9d
jne 0x14002e1f4
cmp edx, r9d
jne 0x14002e1f4
mov eax, dword [rsp + 0x2bc]
or ecx, 0x180000
mov dword [rsp + 0x1dc], r15d
mov dword [rsp + 0x1e0], eax
mov dword [rsp + 0x178], ecx
cmp edi, r9d
je 0x14002e220
cmp r11d, r9d
je 0x14002e220
mov rdi, qword [rsp + 0x68]
cmp edx, r9d
je 0x14002e225
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x1e0], edi
mov dword [rsp + 0x1dc], eax
jmp 0x14002e225
mov rdi, qword [rsp + 0x68]
mov ebp, dword [rsp + 0xd0]
mov r15, qword [rsp + 0xd8]
mov qword [rsp + 0x20], r9
or ebp, r10d
lea rdx, [rsp + 0x130]
xor r8d, r8d
mov r9d, ebp
mov rcx, r15
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
xor ecx, ecx
cmp eax, ecx
je 0x14002e694
cmp r14d, ecx
je 0x14002e26b
cmp r13d, ecx
jne 0x14002e303
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x210]
mov r8d, 0xdc
call fcn.1400de630
mov rax, qword [rsp + 0x80]
xor r10d, r10d
mov dword [rsp + 0x1e0], eax
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x130]
mov r9d, ebp
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x1d8], eax
mov dword [rsp + 0x1dc], edi
mov dword [rsp + 0x178], 0x1c0000
mov qword [rsp + 0x20], r10
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov edi, eax
mov dword [rsp + 0x60], eax
xor eax, eax
cmp edi, eax
jne 0x14002e303
mov r14d, 0xdc
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x130]
mov r8, r14
call fcn.1400de630
xor edi, edi
jmp 0x14002e419
xor edi, edi
cmp r14d, edi
mov r14d, 0xdc
jne 0x14002e3a0
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x210]
mov r8, r14
call fcn.1400de630
mov rax, qword [rsp + 0x68]
lea rdx, [rsp + 0x130]
mov dword [rsp + 0x1dc], eax
mov rax, qword [rsp + 0x80]
mov r9d, ebp
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x178], 0x180000
mov dword [rsp + 0x1e0], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov dword [rsp + 0x60], eax
cmp eax, edi
jne 0x14002e3a0
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x130]
mov r8, r14
call fcn.1400de630
cmp r13d, edi
jne 0x14002e419
cmp r12d, edi
je 0x14002e688
cmp r13d, edi
jne 0x14002e419
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x210]
mov r8, r14
call fcn.1400de630
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x130]
mov r9d, ebp
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x1d8], eax
mov dword [rsp + 0x178], 0x40000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov dword [rsp + 0x64], eax
cmp eax, edi
jne 0x14002e419
lea rcx, [rsp + 0x210]
lea rdx, [rsp + 0x130]
mov r8, r14
call fcn.1400de630
cmp r12d, edi
je 0x14002e688
cmp r12d, edi
mov r12d, 1
jne 0x14002e487
cmp esi, r12d
jbe 0x14002e487
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x210]
mov r8, r14
call fcn.1400de630
lea rdx, [rsp + 0x130]
mov r9d, ebp
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x1e8], esi
mov dword [rsp + 0x178], 0x400000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov esi, eax
cmp eax, edi
jne 0x14002e48e
xor ecx, ecx
mov r14d, dword [rsp + 0x78]
mov bpl, 1
mov r12d, 2
jmp 0x14002e4dd
mov esi, dword [rsp + 0xa90]
cmp r12d, dword [rsp + 0x2c8]
sbb ecx, ecx
and ecx, 0x400000
or ecx, 0x1c0000
mov dword [rsp + 0x258], ecx
cmp dword [rsp + 0x70], edi
je 0x14002e4cd
lea rdx, [rsp + 0x210]
mov r9d, ebp
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov r14d, dword [rsp + 0x78]
xor ecx, ecx
lea r12d, [rcx + 2]
mov bpl, byte [rsp + 0x50]
mov edi, dword [rsp + 0x64]
cmp edi, ecx
cmovne esi, edi
mov edi, dword [rsp + 0x60]
cmp edi, ecx
lea rcx, [rsp + 0x2f2]
cmovne esi, edi
xor edi, edi
xor edx, edx
lea r13d, [rdi + 0x3e]
mov dword [rsp + 0xa90], esi
mov word [rsp + 0x2f0], di
mov r8, r13
call fcn.1400dd9e0
lea r8d, [r13 + 0x5e]
lea rcx, [rsp + 0x330]
xor edx, edx
call fcn.1400dd9e0
lea rcx, [rsp + 0x4b2]
mov r8, r13
xor edx, edx
mov word [rsp + 0x4b0], di
call fcn.1400dd9e0
lea r8d, [r13 + 0x5e]
lea rcx, [rsp + 0x4f0]
xor edx, edx
call fcn.1400dd9e0
test ebx, 0xf00
je 0x14002e74f
mov edx, dword [rsp + 0x54]
cmp edx, 0x84
je 0x14002e577
cmp r14d, edi
jle 0x14002e74f
cmp r14d, edi
mov r13, qword [rsp + 0xa8]
mov eax, 0xdc
mov r8d, 0x20
mov ecx, edi
mov dword [rsp + 0x340], edi
mov word [rsp + 0x334], ax
mov dword [rsp + 0x338], r8d
mov dword [rsp + 0x33c], ecx
jle 0x14002e5d8
movsxd rax, dword [rsp + 0x88]
cmp r14d, eax
jle 0x14002e5d8
cmp eax, edi
jl 0x14002e5d8
mov ecx, dword [r13 + rax*8]
mov dword [rsp + 0x33c], ecx
mov eax, dword [r13 + rax*8 + 4]
mov dword [rsp + 0x340], eax
bt ebx, 8
mov dword [rsp + 0x338], r8d
jae 0x14002e610
lea rdx, [rsp + 0x2f0]
mov r9d, 0x11
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x33c]
mov r8d, 0x84
cmp edx, r8d
cmove ecx, dword [rsp + 0x68]
cmp r14d, edi
lea eax, [r8 - 0x7e]
cmovg eax, r14d
mov dword [rsp + 0x33c], ecx
cmp edx, r8d
je 0x14002e63e
cmp r14d, edi
jle 0x14002e737
xor r10d, r10d
movsxd rsi, r14d
movsxd rbp, eax
xor r14d, r14d
mov rbx, r10
cmp rbp, r14
jle 0x14002e730
lea r8, [rsp + 0x6d0]
xor r9d, r9d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.USER32.DLL_EnumDisplayDevicesW]
cmp eax, r14d
je 0x14002e71b
cmp rsi, r14
jg 0x14002e6a0
cmp edi, dword [rsp + 0x88]
je 0x14002e71b
jmp 0x14002e6c1
mov esi, dword [rsp + 0xa90]
jmp 0x14002e475
mov esi, dword [rsp + 0xa90]
jmp 0x14002e477
cmp rsi, rbx
jle 0x14002e72e
mov eax, dword [r13 + rbx*8]
mov dword [rsp + 0x33c], eax
mov eax, dword [r13 + rbx*8 + 4]
mov dword [rsp + 0x340], eax
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x6d4]
mov r9d, 9
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
cmp dword [rsp + 0x54], 0x84
jne 0x14002e71b
lea r8, [rsp + 0x4b0]
or edx, 0xffffffff
mov rcx, r15
mov dword [rsp + 0x55c], r14d
call qword [sym.imp.USER32.DLL_EnumDisplaySettingsW]
mov r11d, dword [rsp + 0x55c]
mov dword [rsp + 0x33c], r11d
mov eax, 1
add rbx, rax
add edi, eax
cmp rbx, rbp
jl 0x14002e656
xor edi, edi
mov esi, dword [rsp + 0xa90]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.DLL_ChangeDisplaySettingsExW]
mov bpl, r12b
cmp bpl, dil
jle 0x14002e7d8
lea rax, [0x1401178e4]
lea r8, [0x140017ae0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov eax, 0x10000
xor ecx, ecx
mov rdx, rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0x108], rdi
mov rbx, rax
mov eax, 1
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rbx
cmp rbx, rdi
je 0x14002e7cf
mov rcx, qword [rsp + 0xa80]
lea r9, [rsp + 0xf0]
mov edx, 0x3a98
mov r8d, 0x2328
call fcn.14001d848
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rsp + 0xb8]
call fcn.140052160
lea rcx, [rsp + 0xa0]
call fcn.140052160
mov ebx, esi
jmp 0x14002e831
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa80]
call fcn.1400596c4
lea rcx, [rsp + 0xb8]
call fcn.140052160
lea rcx, [rsp + 0xa0]
call fcn.140052160
xor eax, eax
mov ebx, eax
lea rcx, [rsp + 0xb0]
call fcn.140052160
lea rcx, [rsp + 0xc0]
call fcn.140052160
movaps xmm6, xmmword [rsp + 0xa20]
mov eax, ebx
add rsp, 0xa38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret