Function at 0x1400039f8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x6e0], 0
mov rbx, rcx
jne 0x140003c7a
xor edx, edx
lea rcx, str.OneSettingsClient.dll
mov r8d, 0x800
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rbx + 0x6d8], rax
test rax, rax
jne 0x140003a45
mov ecx, 0x8007007e
mov dword [0x140020820], ecx
jmp 0x140003c84
lea rdx, str.OneSettingsCreateDownloadConfig
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x6e8], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsFreeDownloadConfig
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x6f0], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsSetConfigBoolProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x6f8], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsSetConfigDwordProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x700], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsSetConfigWideStringProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x708], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsSetConfigHandleProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x710], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsFreeDownloadResponse
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x718], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsGetResponseDwordProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x720], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsGetResponseStringProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x728], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsGetResponseWideStringProperty
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x730], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsStartDownloadSession
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x738], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsEndDownloadSession
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rbx + 0x740], rax
test rax, rax
je 0x140003c6b
mov rcx, qword [rbx + 0x6d8]
lea rdx, str.OneSettingsDownloadEndpoint
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov ecx, dword [0x140020820]
mov edx, 0x8007007f
test rax, rax
mov qword [rbx + 0x748], rax
cmove ecx, edx
mov dword [0x140020820], ecx
jmp 0x140003c80
mov edx, 0x8007007f
mov ecx, edx
mov dword [0x140020820], edx
jmp 0x140003c84
mov ecx, dword [0x140020820]
test ecx, ecx
jns 0x140003cad
mov rax, qword [rbx + 0x6d8]
test rax, rax
je 0x140003cad
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
and qword [rbx + 0x6d8], 0
mov ecx, dword [0x140020820]
mov dword [rbx + 0x6e0], 1
mov eax, ecx
add rsp, 0x20
pop rbx
ret