Function at 0x1400054a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140098180]
xor rax, rsp
mov qword [rsp + 0x150], rax
call fcn.140057820
test al, al
je 0x140005824
mov dl, 1
lea rcx, str.File
call fcn.140057b40
test al, al
je 0x140005502
mov r9b, 1
lea rdx, str.AltF4
xor r8d, r8d
lea rcx, str.Exit
call fcn.140058890
test al, al
je 0x1400054fd
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
call fcn.1400587b0
mov dl, 1
lea rcx, str.License
call fcn.140057b40
test al, al
je 0x1400057ec
mov r9b, 1
mov qword [rsp + 0x160], r15
xor r8d, r8d
lea rcx, str.Load...
xor edx, edx
call fcn.140058890
test al, al
je 0x140005564
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 5
lea rcx, [rsp + 0x50]
call fcn.14005ecd0
test al, al
je 0x140005564
lea rdx, [rsp + 0x50]
lea rcx, [0x140099fd0]
call fcn.1400082c0
mov r9b, 1
mov qword [rsp + 0x180], rbx
xor r8d, r8d
lea rcx, str.Save_As...
xor edx, edx
call fcn.140058890
xor r15d, r15d
test al, al
je 0x14000575f
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 5
lea rcx, [rsp + 0x50]
call fcn.14005ea60
test al, al
je 0x14000575f
mov qword [rsp + 0x190], rsi
mov qword [rsp + 0x168], r14
call fcn.140004de0
mov ecx, 0x118
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x1400055da
mov esi, r15d
jmp 0x1400055ea
xor edx, edx
mov r8d, 0x118
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [0x14009a080]
lea rdx, [0x140099fd0]
mov r8, qword [0x14009a078]
mov rcx, rsi
call fcn.140009ce0
test al, al
jne 0x14000561c
lea rcx, str.Failed_to_convert_license_to_BSON_n
call fcn.140004b40
jmp 0x14000574f
mov ebx, dword [rsi + 8]
xor r9d, r9d
mov r10, qword [r14]
xor edx, edx
mov qword [rsp + 0x188], rbp
mov rcx, r14
mov qword [rsp + 0x170], rdi
mov rdi, qword [rsi]
lea r8d, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [r10 + 8]
mov r9d, ebx
lea rdx, [rsp + 0x38]
mov rbp, rax
mov r8, rdi
lea rax, [0x140087050]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.14005ef20
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9, r14
mov rcx, rbp
call fcn.14005db60
lea rdx, [rsp + 0x50]
mov ecx, 3
mov rdi, rax
call fcn.140003d10
mov rbx, rax
test rax, rax
jne 0x1400056b1
lea rcx, str.Failed_to_open_license.lic_for_writing_n
call fcn.140004b40
jmp 0x14000573f
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov rcx, qword [rax]
mov rdx, rdi
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140099fc0]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], r15
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [r14]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [rax + 8]
mov rax, qword [r14]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [rax + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x190]
mov r14, qword [rsp + 0x168]
mov rax, qword [0x140099548]
mov rax, qword [rax + 0x1be8]
cmp byte [rax + 0xd4], r15b
jne 0x140005788
mov eax, dword [rax + 0x1fc]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.14004e110
mov r9b, 1
lea rcx, str.Remove_All_Devices
xor r8d, r8d
xor edx, edx
call fcn.140058890
test al, al
je 0x1400057d7
mov rbx, qword [0x14009a078]
mov dword [0x14009a080], r15d
call fcn.140004de0
mov dword [rsp + 0x28], r15d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, rax
mov r10, qword [rax]
call qword [r10 + 8]
mov qword [0x14009a078], r15
call fcn.1400587b0
mov r15, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x180]
call fcn.140057650
mov rax, qword [0x140099548]
mov rcx, qword [rax + 0x1e00]
cmp qword [rax + 0x1be8], rcx
jne 0x14000581f
cmp dword [rax + 0x1e4c], 0
jne 0x14000581f
cmp byte [rax + 0x1e58], 0
jne 0x14000581f
call fcn.14001f720
call fcn.14001f1b0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007b230
add rsp, 0x178
ret