Function at 0x140006478
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xc20]
sub rsp, 0xd20
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rbp + 0xc10], rax
mov rdi, rdx
movzx ebx, r9w
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r14d, 0x98
lea rcx, [rsp + 0x30]
mov r8d, r14d
xor edx, edx
mov rsi, rax
call fcn.140017af0
mov dword [rsp + 0x30], r14d
mov r15d, 0x402
mov r14d, 1
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x68], 0x104
mov dword [rsp + 0x5c], r14d
cmp ebx, r15d
jg 0x1400068d5
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rcx
mov dword [rbp], 0
mov dword [rbp + 4], 0
mov eax, 0
cmp eax, 1
je 0x140006564
mov eax, dword [rbp]
movsxd rax, eax
imul rax, rax, 2
add rax, qword [rbp + 0x20]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x5c
jne 0x14000653f
mov eax, dword [rbp]
mov dword [rbp + 4], eax
mov eax, dword [rbp]
movsxd rax, eax
imul rax, rax, 2
add rax, qword [rbp + 0x20]
movzx eax, word [rax]
movzx eax, ax
test eax, eax
je 0x140006564
mov eax, 1
add eax, dword [rbp]
mov dword [rbp], eax
jmp 0x140006516
mov eax, 1
add eax, dword [rbp + 4]
movsxd rax, eax
imul rax, rax, 2
add rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x10]
pop rbp
ret
mov r15d, 0x9c41
cmp ebx, r15d
je 0x1400069e0
cmp ebx, 0x9c45
je 0x1400069ab
cmp ebx, 0x9c49
je 0x140006993
cmp ebx, 0x9d0d
jle 0x140006af0
mov esi, 0x9d12
cmp ebx, esi
jle 0x14000695d
mov esi, 0x9d13
cmp ebx, esi
jne 0x140006af0
xor ebx, ebx
mov rcx, rdi
cmp dword [0x140046914], ebx
mov eax, ebx
sete al
mov dword [0x140046914], eax
test eax, eax
je 0x140006944
call qword [sym.imp.USER32.dll_GetMenu]
lea r8d, [rbx + 8]
jmp 0x14000694d
call qword [sym.imp.USER32.dll_GetMenu]
xor r8d, r8d
mov rcx, rax
mov edx, esi
call qword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x140006af0
lea eax, [rbx - 0x9d0e]
mov rcx, rdi
mov dword [0x140046910], eax
call qword [sym.imp.USER32.dll_GetMenu]
mov r9d, ebx
mov r8d, esi
mov edx, 0x9d0e
mov rcx, rax
mov dword [rsp + 0x20], 8
call qword [sym.imp.USER32.dll_CheckMenuRadioItem]
jmp 0x140006af0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140006af0
mov rcx, qword [0x140046088]
xor ebx, ebx
lea r9, [0x140006d08]
lea edx, [rbx + 0x6f]
mov r8, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
jmp 0x140006aea
xor ebx, ebx
cmp byte [0x140047791], bl
je 0x1400069f6
mov byte [0x140047792], r14b
jmp 0x140006af0
lea r8, [rbp + 0x600]
mov r9d, 0x104
mov edx, 0x3fc
mov rcx, rdi
mov byte [0x140047792], bl
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea r8, [rbp + 0x3f0]
mov r9d, 0x104
mov edx, 0x403
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea r8, [rbp - 0x20]
mov r9d, 0x104
mov edx, 0x404
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
mov rcx, qword [0x140046080]
xor r9d, r9d
mov edx, 0x40d
mov r8d, 0xf0
mov dword [0x140046918], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x140046918]
cmp rax, r14
lea rdx, [rbp + 0x600]
cmove ecx, r14d
mov dword [0x140046918], ecx
lea rcx, [0x140047178]
call fcn.140017878
lea rdx, [rbp + 0x3f0]
lea rcx, [0x140047380]
call fcn.140017878
lea rdx, [rbp - 0x20]
lea rcx, [0x140047588]
call fcn.140017878
lea rax, [0x140047148]
lea r9, [0x140046080]
mov qword [rsp + 0x28], rax
lea r8, [0x140006dc8]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call fcn.140017fd8
mov qword [0x140047140], rax