Function at 0x140003bd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x140017de8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, rcx
mov rcx, qword [rcx + 0x10]
call sub.SDL2.dll_SDL_LockMutex
mov rcx, qword [0x140017e68]
lea rdx, str.status
call fcn.1400027e0
lea rdx, str.fetching_updates...
mov rcx, rax
call fcn.140003200
mov rcx, qword [r14 + 0x10]
call sub.SDL2.dll_SDL_UnlockMutex
call fcn.140002060
lea rdx, str.https:__api.github.com_repos_teamexeempire_disaster_launcher_releases_latest
mov rcx, rax
mov rbp, rax
call fcn.140002490
mov rcx, rbp
call fcn.140002120
cmp byte [rbp + 0x18], 0
jne 0x140003ca1
lea rdi, str.C:UsershanderDocumentsdisaster_launcher_task_launch.c
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140003c74
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
lea rdi, [rax + 1]
mov rcx, rbp
call fcn.140002050
mov r9, rax
lea rcx, str.Failed_to_fetch_update:__s
mov r8d, 0x2a
mov rdx, rdi
call fcn.140002580
mov rcx, rbp
call fcn.140001f80
jmp 0x140003e57
mov rcx, qword [rbp + 0x38]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x178], rbx
xor edx, edx
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x188], r15
call sub.jansson.dll_json_loads
lea rdx, str.message
mov rcx, rax
mov rbx, rax
call sub.jansson.dll_json_object_get
mov rsi, rax
test rax, rax
je 0x140003d32
lea rdi, str.C:UsershanderDocumentsdisaster_launcher_task_launch.c
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140003d0d
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
lea rdi, [rax + 1]
mov rcx, rsi
call sub.jansson.dll_json_string_value
mov r9, rax
lea rcx, str.Failed_to_fetch_update:__s
mov r8d, 0x36
mov rdx, rdi
call fcn.140002580
jmp 0x140003e12
lea rdx, str.tag_name
mov rcx, rbx
call sub.jansson.dll_json_object_get
test rax, rax
jne 0x140003d88
lea rdi, str.C:UsershanderDocumentsdisaster_launcher_task_launch.c
mov rcx, rdi
lea edx, [rax + 0x5c]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140003d6e
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
lea rdi, [rax + 1]
mov r8d, 0x41
lea rcx, str.Failed_to_fetch_update:_tag_name_not_present_in_JSON.
mov rdx, rdi
call fcn.140002580
jmp 0x140003e12
mov rcx, rax
call sub.jansson.dll_json_string_value
lea rcx, str.game
mov rdi, rax
call fcn.1400032d0
test al, al
je 0x140003e07
lea rcx, str.server
call fcn.1400032d0
test al, al
je 0x140003e07
lea rdx, [0x140009d2c]
lea rcx, str.version
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x140003e07
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
movsxd r15, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
cmp r15d, 0x20
jl 0x140003e73
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, rbx
mov rcx, r14
call fcn.1400045b0
test rbx, rbx
je 0x140003e37
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x140003e37
mov rax, qword [rbx + 8]
sub rax, 1
mov qword [rbx + 8], rax
jne 0x140003e37
mov rcx, rbx
call sub.jansson.dll_json_delete
mov rcx, rbp
call fcn.140001f80
mov rsi, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x178]
mov r15, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007100
add rsp, 0x150
pop r14
pop rdi
pop rbp
ret
mov edx, 0x20
lea rcx, [rsp + 0x120]
mov r9, rsi
lea r8d, [rdx - 0x1f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp r15, 0x20
jae 0x140003ecf
lea rax, [rsp + 0x120]
mov byte [rsp + r15 + 0x120], 0
sub rdi, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x140003ec2
inc rax
test ecx, ecx
jne 0x140003eb0
test edx, edx
jne 0x140003e07
jmp 0x140003e12
call fcn.140007228
int3