Function at 0x140012ac0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x1400540b8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0xa0]
lea r13, [0x1400572f8]
xor r14d, r14d
mov qword [rsp + 0x60], r8
test rax, rax
mov dword [0x1400572f8], r14d
mov ecx, 0xffffff
mov qword [rsp + 0x68], rdx
cmovne r13, rax
mov dword [0x1400572fc], ecx
mov ebx, r9d
mov qword [rsp + 0x58], r13
cmp dword [r13 + 4], r14d
jne 0x140012b3f
mov eax, dword [r13]
cmp eax, 0xffff00
je 0x140012b38
cmp eax, 0xff00
jne 0x140012b3b
mov ecx, r14d
mov dword [r13 + 4], ecx
mov edi, ebx
mov qword [rsp + 0x180], rsi
and edi, 0x8000
mov eax, ebx
mov dword [rsp + 0x3c], edi
mov r12d, 1
and eax, 0x80000
je 0x140012b70
test edi, edi
jne 0x140012b70
mov esi, r14d
mov dword [rsp + 0x38], r14d
jmp 0x140012b88
mov dword [rsp + 0x38], r12d
mov esi, r12d
test edi, edi
je 0x140012b88
cmp qword [0x1400572d0], r14
mov ecx, r12d
jne 0x140012b8b
mov ecx, r14d
test edi, edi
jne 0x140012ba0
test eax, eax
jne 0x140012ba0
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400135da
mov qword [r13], 0xc0c0c0
test ecx, ecx
je 0x140012bc3
mov r9, rdx
xor r8d, r8d
mov edx, 0x8001
xor ecx, ecx
call fcn.140011f80
jmp 0x1400135da
test eax, eax
je 0x140012c16
and dword [r13 + 0x34], 0xfffffffe
mov r9, r13
mov edx, 0x111
xor ecx, ecx
mov r8d, 0x70002
call fcn.140011f80
mov rcx, qword [0x1400572d0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140012bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400572d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400572d0], r14
test esi, esi
je 0x140012c42
mov ecx, dword [r13 + 0x34]
mov eax, ecx
or ecx, r12d
and eax, 0xfffffffe
test edi, edi
cmove ecx, eax
mov dword [r13 + 0x34], ecx
mov ecx, 0x400
call fcn.140016d00
mov qword [rsp + 0x50], rax
mov rsi, rax
test rax, rax
jne 0x140012c49
xor eax, eax
jmp 0x1400135da
xor edx, edx
mov qword [rsp + 0x140], r15
mov r8d, 0x400
mov rcx, rax
call fcn.1400180a0
xor edx, edx
mov word [rbp - 0x80], r14w
lea rcx, [rbp - 0x78]
lea r8d, [rdx + 0x78]
call fcn.1400180a0
mov eax, ebx
mov dword [rsp + 0x30], r14d
and eax, 7
lea r8, [0x1400558d0]
mov r15d, r14d
mov r10d, 0xc9
mov r9d, 0xa
cmp eax, 6
ja case.0x140012caf.2
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x13608]
add rcx, rdx
jmp rcx
test edi, edi
jne case.0x140012caf.2
mov eax, r14d
mov rcx, r8
bt ebx, 0x12
jae 0x140012cd8
cmp word [rcx], r10w
je 0x140012d44
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012cc5
jmp 0x140012d44
bt ebx, 0x11
jae 0x140012d33
mov edx, 0xca
cmp word [rcx], dx
je 0x140012cf3
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012ce3
mov rcx, qword [r13 + 0x10]
cmp eax, r9d
cmovae eax, r9d
movsxd rdx, eax
lea rax, str.ERROR:_Caller_must_provide_this_in_sDialogData.m_pUserKeyLabel____
shl rdx, 5
test rcx, rcx
cmovne rax, rcx
mov qword [rdx + r8 + 8], rax
mov rax, qword [r13 + 0x18]
test rax, rax
je 0x140012d26
mov qword [rdx + r8 + 0x10], rax
movups xmm0, xmmword [rdx + r8]
movups xmm1, xmmword [rdx + r8 + 0x10]
jmp 0x140012d5c
cmp word [rcx], r12w
je 0x140012d44
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012d33
cmp eax, r9d
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm1, xmmword [rax + r8 + 0x10]
movups xmm0, xmmword [rax + r8]
movaps xmmword [rbp - 0x80], xmm0
mov r15d, r12d
movaps xmmword [rbp - 0x70], xmm1
mov dword [rsp + 0x30], r12d
jmp case.0x140012caf.2
mov eax, r14d
mov rcx, r8
cmp word [rcx], r12w
je 0x140012d88
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012d77
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
nop
cmp word [rcx], 2
je 0x140012dc1
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012db0
cmp eax, r9d
mov r15d, 2
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
jmp 0x140012ff7
mov eax, r14d
mov rcx, r8
cmp word [rcx], 6
je 0x140012e03
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012df2
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
nop dword [rax]
cmp word [rcx], 7
je 0x140012e41
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012e30
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
nop word [rax + rax]
cmp word [rcx], 2
je 0x140012fd1
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012e70
jmp 0x140012fd1
mov eax, r14d
mov rcx, r8
cmp word [rcx], 6
je 0x140012ea1
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012e90
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
nop word [rax + rax]
cmp word [rcx], 7
je 0x140012dc1
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012ed0
jmp 0x140012dc1
mov eax, r14d
mov rcx, r8
cmp word [rcx], 4
je 0x140012f01
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012ef0
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
nop word [rax + rax]
cmp word [rcx], 2
je 0x140012dc1
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012f30
jmp 0x140012dc1
mov eax, r14d
mov rcx, r8
cmp word [rcx], 2
je 0x140012f61
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012f50
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
cmp word [rcx], r9w
je 0x140012f98
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012f87
cmp eax, r9d
mov rcx, r8
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm0, xmmword [rax + r8]
movups xmm1, xmmword [rax + r8 + 0x10]
mov eax, r14d
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm1
nop
cmp word [rcx], 0xb
je 0x140012fd1
inc eax
add rcx, 0x20
cmp eax, 0xb
jb 0x140012fc0
cmp eax, r9d
mov r15d, 3
cmovae eax, r9d
cdqe
shl rax, 5
movups xmm1, xmmword [rax + r8 + 0x10]
movups xmm0, xmmword [rax + r8]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov dword [rsp + 0x30], r15d
movzx eax, word [rbp - 0x80]
mov dword [r13 + 0x2c], eax
mov eax, ebx
and eax, 0xf00
je 0x140013036
cmp eax, 0x100
je 0x14001302e
cmp eax, 0x200
je 0x140013028
cmp eax, 0x300
jne 0x140013036
movzx eax, word [rbp - 0x20]
jmp 0x140013032
movzx eax, word [rbp - 0x40]
jmp 0x140013032
movzx eax, word [rbp - 0x60]
mov dword [r13 + 0x2c], eax
bt ebx, 0x1c
jae 0x1400131c2
or dword [r13 + 0x34], 0x10000000
xor ecx, ecx
movzx eax, word [0x14004d6f8]
movups xmm0, xmmword [str.27RPAHCM]
mov word [rbp + 0x28], ax
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov word [rbp + 0x10], ax
movups xmmword [rbp + 0x18], xmm0
call fcn.14002ad78
mov rcx, rax
call fcn.14002ba60
mov dword [rsp + 0x34], r14d
mov r12d, r14d
mov r10d, r14d
test r15d, r15d
je 0x1400131c2
lea r8, [rbp + 2]
mov rdi, r14
lea r9, [rbp - 0x80]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov eax, 0xc9
nop dword [rax]
movzx r13d, word [r9]
cmp r13w, ax
jae 0x140013195
mov esi, r14d
mov ebx, r14d
cmp ebx, 0xa
jge 0x14001312d
call fcn.14002ba34
movsxd rcx, eax
movabs rax, 0xe38e38e38e38e38f
mul rcx
shr rdx, 3
lea rax, [rdx + rdx*8]
sub rcx, rax
movsxd rax, ecx
lea rcx, [rbp]
movzx r15d, word [rbp + rax*2 + 0x18]
movzx edx, r15w
call fcn.1400190d4
test rax, rax
je 0x140013108
dec ebx
jmp 0x140013126
mov word [rbp + rdi*2], r15w
inc r12d
inc rdi
cmp rdi, 9
jae 0x1400135ff
mov word [rbp + rdi*2], r14w
inc esi
inc ebx
cmp esi, 2
jl 0x1400130c4
lea r9, [0x1400558d0]
mov eax, r14d
mov rdx, r9
mov rcx, r14
nop dword [rax]
cmp word [rdx], r13w
je 0x140013154
inc eax
inc rcx
add rdx, 0x20
cmp eax, 0xb
jb 0x140013140
mov r8, qword [rsp + 0x40]
cmp eax, 0xa
mov r15d, dword [rsp + 0x30]
mov eax, 0xa
mov r10d, dword [rsp + 0x34]
cmovae rcx, rax
shl rcx, 5
movzx eax, byte [r8 - 2]
mov byte [rcx + r9 + 0x18], al
movzx eax, byte [r8]
mov byte [rcx + r9 + 0x19], al
mov eax, 0xc9
mov byte [rcx + r9 + 0x1a], r14b
mov r9, qword [rsp + 0x48]
inc r10d
add r9, 0x20
add r8, 4
mov dword [rsp + 0x34], r10d
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
cmp r10d, r15d
jl 0x1400130b0
mov r13, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov r12d, eax
mov dword [rsi], 0x80800080
movzx edi, r12w
lea eax, [r15 + 2]
mov dword [rsp + 0x48], edi
mov word [rsi + 8], ax
mov dword [rsi + 0xa], 0x640064
shr r12d, 0x10
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x140013250
mov eax, dword [rsp + 0x78]
mov r8d, edi
add eax, 0xfffffd44
cdq
sub eax, edx
mov edx, 4
sar eax, 1
add eax, dword [rsp + 0x70]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov word [rsi + 0xa], ax
mov r8d, r12d
mov eax, dword [rsp + 0x7c]
add eax, 0xfffffed4
cdq
sub eax, edx
mov edx, 8
sar eax, 1
add eax, dword [rsp + 0x74]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov word [rsi + 0xc], ax
mov r8d, edi
mov edx, 4
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, r12d
mov edx, 8
mov ecx, 0x12c
mov word [rsi + 0xe], ax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov word [rsi + 0x10], ax
lea rbx, [rsi + 0x12]
mov rsi, qword [rsp + 0x60]
mov edx, 0x100
mov dword [rbx], r14d
mov rcx, rsi
add rbx, 4
call fcn.14002796c
mov r8, rsi
mov rcx, rbx
lea rdx, [rax + 1]
call fcn.140027b44
mov edx, 0x100
mov rcx, rsi
call fcn.14002796c
mov edx, 4
mov r8d, edi
lea rbx, [rbx + rax*2]
add rbx, 5
lea ecx, [rdx + 0x10]
and rbx, 0xfffffffffffffffc
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, 8
mov r8d, r12d
mov word [rbx + 8], ax
lea ecx, [rdx + 0xc]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, edi
mov edx, 4
mov ecx, 0x294
mov word [rbx + 0xa], ax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, r12d
mov edx, 8
mov ecx, 0xbb
mov word [rbx + 0xc], ax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8, qword [rsp + 0x68]
lea rsi, [rbx + 0x12]
mov word [rbx + 0xe], ax
mov eax, 0xc8
mov word [rbx + 0x10], ax
mov rax, 0xffffffffffffffff
mov dword [rbx], 0x50000001
mov dword [rsi], 0x82ffff
add rsi, 4
inc rax
cmp word [r8 + rax*2], r14w
jne 0x140013344
movsxd rbx, eax
mov rcx, rsi
lea rdx, [rbx + 1]
call fcn.140027b44
mov word [rsi + rbx*2 + 2], r14w
mov edx, 4
lea rbx, [rbx*2 + 7]
mov r8d, edi
add rbx, rsi
and rbx, 0xfffffffffffffffc
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, r12d
mov edx, 8
mov ecx, 0xd2
mov word [rbx + 8], ax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, edi
mov edx, 4
mov ecx, 0x294
mov word [rbx + 0xa], ax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, 0x1e
mov r8d, r12d
mov ecx, esi
mov word [rbx + 0xc], ax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [rbx + 0x10], 0xffff00a0
lea ecx, [rsi + 0x32]
mov word [rbx + 0xe], ax
mov r8d, 0xa0
mov dword [rbx], 0x10000001
mov edx, 1
mov dword [rbx + 0x14], 0x82
mov word [rbx + 0x18], r14w
add rbx, 0x1a
test r15d, r15d
lea eax, [r8 + 0x6e]
cmovne edx, r15d
cmp edx, 2
jne 0x140013416
mov dword [rsp + 0x34], 0x6e
mov ecx, r8d
jmp 0x140013420
cmp edx, 3
cmove eax, esi
mov dword [rsp + 0x34], eax
test r15d, r15d
je 0x14001352a
mov r13d, dword [rsp + 0x34]
lea eax, [rcx + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, r15d
mov r15, r14
mov qword [rsp + 0x40], rax
nop dword [rax]
nop word [rax + rax]
lea rsi, [rbx + 3]
mov r8d, edi
mov edx, 4
mov ecx, r13d
and rsi, 0xfffffffffffffffc
call qword [sym.imp.KERNEL32.dll_MulDiv]
add r13d, dword [rsp + 0x30]
mov r8d, r12d
mov edx, 8
mov word [rsi + 8], ax
mov ecx, 0xf0
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, edi
mov edx, 4
mov ecx, 0xa0
mov word [rsi + 0xa], ax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, 8
mov r8d, r12d
mov word [rsi + 0xc], ax
lea ecx, [rdx + 0x16]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov word [rsi + 0xe], ax
mov ecx, 0x50030000
mov rdi, r15
shl rdi, 5
test r15, r15
movzx eax, word [rbp + rdi - 0x80]
mov rdi, qword [rbp + rdi - 0x78]
mov word [rsi + 0x10], ax
mov eax, 0x50010000
cmove eax, ecx
mov rcx, rdi
or eax, 0xb
mov dword [rsi], eax
mov dword [rsi + 0x12], 0x80ffff
add rsi, 0x16
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov rcx, rsi
inc eax
movsxd rbx, eax
mov rdx, rbx
call fcn.140027b44
mov edi, dword [rsp + 0x48]
lea rbx, [rsi + rbx*2]
inc r15
mov word [rbx], r14w
sub qword [rsp + 0x40], 1
lea rbx, [rbx + 2]
jne 0x140013450
mov r13, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x140013540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x50]
cmp dword [rsp + 0x38], r14d
je 0x1400135c7
cmp dword [rsp + 0x3c], r14d
je 0x1400135a9
lea rax, [rsp + 0x3c]
mov qword [rbp + 0x18], rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140057730]
mov qword [rbp + 0x20], rdi
lea r8, [0x140012a60]
movups xmm0, xmmword [rbp + 0x18]
mov qword [rbp + 0x28], r13
xor edx, edx
movsd xmm1, qword [rbp + 0x28]
xor ecx, ecx
movups xmmword [0x140057730], xmm0
mov dword [rsp + 0x20], r14d
movsd qword [0x140057740], xmm1
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400572d0], rax
xor eax, eax
jmp 0x1400135d2
lea r9, [fcn.140011f80]
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov r14d, eax
mov rcx, rdi
call fcn.140016cf8
mov eax, r14d
mov r15, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x180]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140016da0
add rsp, 0x148
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
call fcn.140017228
int3