Function at 0x140051d00
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
mov qword [0x140075700], rax
mov rax, qword [rsp + 0x30]
mov qword [0x140075620], rax
cmp dword [0x1400756fc], 0
je 0x140051d66
mov qword [rsp + 0x20], 0
lea r9, [0x14003fd20]
mov r8, qword [rsp + 0x30]
mov edx, 0x1f4
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
lea r9, str.ThreadExitSignal
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14007d920], rax
cmp qword [0x14007d920], 0
je 0x140051dd4
mov rax, qword [0x140075838]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400471a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14007d928], rax
cmp qword [0x14007d928], 0
jne 0x140051dd4
mov rcx, qword [0x14007d920]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x14007d998], 0
je 0x140051fdc
mov eax, dword [0x14007d9a0]
shr rax, 0x10
movzx eax, ax
cmp eax, 2
jne 0x140051fab
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.SupportPTPMode
lea rdx, [0x14006ba10]
mov rcx, 0xffffffff80000001
call fcn.14000d250
cmp dword [0x140075720], 2
jne 0x140051e3c
cmp dword [0x140075714], 0xa
jne 0x140051e3c
cmp dword [0x140075718], 0
je 0x140051e44
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [0x14007d9b0], eax
cmp dword [0x14007d9b0], 0
je 0x140051f7c
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.PTPModeOn
lea rdx, str.SOFTWAREAlpsApoint
mov rcx, 0xffffffff80000001
call fcn.14000d250
test eax, eax
jne 0x140051ed7
cmp dword [rsp + 0x38], 0
jbe 0x140051e9f
mov byte [rsp + 0x3c], 1
jmp 0x140051ea4
mov byte [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [0x14007da88], al
movzx eax, byte [0x14007da88]
test eax, eax
jne 0x140051ec4
mov dword [rsp + 0x40], 1
jmp 0x140051ecc
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [0x14007da7f], al
movzx eax, byte [0x14007da88]
test eax, eax
je 0x140051eeb
cmp dword [0x14007d910], 0
je 0x140051f03
movzx eax, byte [0x14007da7f]
test eax, eax
je 0x140051f7a
cmp dword [0x14007d914], 0
jne 0x140051f7a
movzx eax, byte [0x14007da88]
test eax, eax
je 0x140051f3d
mov qword [rsp + 0x20], 0
lea r9, [0x140020dd0]
mov r8, qword [rsp + 0x30]
mov edx, 0x25e
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [0x14007d908], eax
jmp 0x140051f75
movzx eax, byte [0x14007da7f]
test eax, eax
je 0x140051f75
mov qword [rsp + 0x20], 0
lea r9, [0x140047380]
mov r8, qword [rsp + 0x30]
mov edx, 0x21e
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [0x14007d90c], eax
jmp 0x140051ed7
jmp 0x140051fa9
mov qword [rsp + 0x20], 0
lea r9, [0x140047380]
mov r8, qword [rsp + 0x30]
mov edx, 0x21e
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [0x14007d90c], eax
jmp 0x140051fd2
mov qword [rsp + 0x20], 0
lea r9, [0x14001ed90]
mov r8, qword [rsp + 0x30]
mov edx, 0x21d
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, 1
jmp 0x140052081
movzx eax, byte [0x14007d990]
test eax, eax
je 0x140052019
cmp dword [0x14007d998], 0
jne 0x140052019
mov qword [rsp + 0x20], 0
lea r9, [0x140024220]
mov r8, qword [rsp + 0x30]
mov edx, 0x21c
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x140052056
mov dword [0x1400779f0], 0x4b3
mov eax, dword [0x140072440]
mov dword [0x1400773ac], eax
mov qword [rsp + 0x20], 0
lea r9, [0x140056730]
mov r8, qword [rsp + 0x30]
mov edx, 0x1f5
mov rcx, qword [0x140075700]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp qword [rsp + 0x30], 0
jne 0x140052062
xor eax, eax
jmp 0x140052081
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
add rsp, 0x58
ret