Function at 0x1400045b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0xd8
mov rax, qword [0x140017de8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, rdx
mov qword [rsp + 0x30], rcx
mov dl, 1
mov r12, rcx
call fcn.140003430
lea rdx, str.tag_name
mov rcx, r14
call sub.jansson.dll_json_object_get
mov rcx, rax
mov rbx, rax
call sub.jansson.dll_json_string_value
mov rcx, qword [r12 + 0x10]
mov rdi, rax
mov qword [rsp + 0x38], rax
call sub.SDL2.dll_SDL_LockMutex
mov rcx, qword [0x140017e68]
lea rdx, str.status
call fcn.1400027e0
lea rsi, str.C:UsershanderDocumentsdisaster_launcher_task_install.c
mov rbp, rax
test rbx, rbx
je 0x140004637
test rax, rax
jne 0x140004673
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14000465b
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
inc rax
jmp 0x14000465e
mov rax, rsi
mov r8d, 0x92
lea rcx, str.whar___
mov rdx, rax
call fcn.140002580
mov r9, rdi
lea r8, str.installing_v_s...
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.140001df0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140003200
mov rcx, qword [r12 + 0x10]
call sub.SDL2.dll_SDL_UnlockMutex
lea rdx, str.assets
mov rcx, r14
call sub.jansson.dll_json_object_get
mov r14, rax
test rax, rax
jne 0x1400046f4
lea edx, [rax + 0x5c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400046da
lea edx, [r14 + 0x5c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
lea rsi, [rax + 1]
mov r8d, 0x9e
lea rcx, str.Failed_to_fetch_update:_assets_not_present_in_JSON.
mov rdx, rsi
call fcn.140002580
jmp 0x140004a1e
mov qword [rsp + 0x120], r13
mov rcx, r14
mov qword [rsp + 0xd0], r15
xor r15d, r15d
mov r13d, r15d
mov ebp, r15d
call sub.jansson.dll_json_array_size
lea rbx, str.BetterServerWin
test rax, rax
je 0x1400049ca
mov rdx, rbp
mov rcx, r14
call sub.jansson.dll_json_array_get
mov rbx, rax
test rax, rax
je 0x1400047c0
lea rdx, str.name
mov rcx, rax
call sub.jansson.dll_json_object_get
lea rdx, [0x14000a3b4]
mov rcx, rbx
mov r12, rax
call sub.jansson.dll_json_object_get
mov rdi, rax
test r12, r12
je 0x1400047ac
test rax, rax
je 0x1400047ac
mov rcx, r12
call sub.jansson.dll_json_string_value
mov rcx, rdi
mov rbx, rax
call sub.jansson.dll_json_string_value
lea rdx, str.DisasterWin
mov rcx, rbx
mov rdi, rax
call sub.VCRUNTIME140.dll_strstr
test rax, rax
lea rdx, str.BetterServerWin
mov rcx, rbx
cmovne r15, rdi
call sub.VCRUNTIME140.dll_strstr
test rax, rax
cmovne r13, rdi
mov rcx, r14
inc rbp
call sub.jansson.dll_json_array_size
cmp rbp, rax
jb 0x140004725
test r15, r15
je 0x1400049c3
test r13, r13
je 0x1400049c3
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400047f6
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
inc rax
jmp 0x1400047f9
mov rax, rsi
mov r9, r15
lea rcx, str.Disaster:__s
mov r8d, 0xbe
mov rdx, rax
call fcn.1400024a0
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140004835
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
inc rax
jmp 0x140004838
mov rax, rsi
mov r9, r13
lea rcx, str.DisasterServer:__s
mov r8d, 0xbf
mov rdx, rax
call fcn.1400024a0
lea rcx, [0x14000a434]
call fcn.1400032d0
test al, al
je 0x140004873
lea rdx, [0x14000a438]
lea rcx, str.rm__rf_tmp
call fcn.140003b40
lea rcx, [0x14000a434]
call fcn.1400032f0
lea rcx, str.game
call fcn.1400032d0
test al, al
je 0x1400048a2
lea rdx, [0x14000a438]
lea rcx, str.rm__rf_game
call fcn.140003b40
lea rcx, str.game
call fcn.1400032f0
mov r12, qword [rsp + 0x30]
lea r9, str.game_
mov rcx, r12
lea r8, str.tmp_disaster.zip
mov rdx, r15
call fcn.140003ee0
lea rcx, str.tmp_disaster.zip
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, str.server
call fcn.1400032d0
test al, al
je 0x1400048fc
lea rdx, [0x14000a438]
lea rcx, str.rm__rf_server
call fcn.140003b40
lea rcx, str.server
call fcn.1400032f0
lea r9, str.server_
mov rdx, r13
lea r8, str.tmp_server.zip
mov rcx, r12
call fcn.140003ee0
lea rcx, str.tmp_server.zip
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rdx, [0x140009a10]
lea rcx, str.version
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x14000497e
lea edx, [rax + 0x5c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140004969
lea edx, [rbx + 0x5c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
lea rsi, [rax + 1]
mov r8d, 0xe5
lea rcx, str.Failed_to_open_version_file_
mov rdx, rsi
call fcn.140002580
mov rdi, qword [rsp + 0x38]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140004990
inc rdx
mov r9, rbx
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
mov rcx, r12
call fcn.140003430
jmp 0x140004a0e
lea rbx, str.BetterServerWin
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400049ed
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_strrchr
lea rsi, [rax + 1]
lea r9, str.DisasterWin
mov qword [rsp + 0x20], rbx
mov r8d, 0xba
lea rcx, str.Couldnt_find_gameUrl_or_serverUrl___pair__s___s_
mov rdx, rsi
call fcn.140002580
mov r13, qword [rsp + 0x120]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140007100
add rsp, 0xd8
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret