Function at 0x140014210
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x288
mov qword [rsp + 0x278], rcx
mov dword [rsp + 0x274], edx
cmp qword [rsp + 0x278], 0
je 0x14001426d
mov rax, qword [rsp + 0x278]
cmp qword [rax], 0
je 0x14001426d
mov rax, qword [rsp + 0x278]
cmp qword [rax + 0x30], 0
je 0x14001426d
mov rax, qword [rsp + 0x278]
cmp qword [rax + 0x38], 0
jne 0x14001427d
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
lea rcx, [0x140034ae7]
mov edx, 0x2707
call fcn.140018a60
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jge 0x1400142b3
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
mov qword [rsp + 0x268], 0
cmp dword [rsp + 0x274], 0
je 0x140014496
call fcn.14001d5a0
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax]
mov rcx, qword [rax + 0x50]
call fcn.14001dbc0
mov rcx, qword [rsp + 0x30]
mov r8, rax
lea rdx, [0x140034a3e]
call fcn.14001eb70
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x38], rax
lea rcx, str.update_check
call fcn.14001dbc0
mov rcx, qword [rsp + 0x38]
mov r8, rax
lea rdx, [0x140034af4]
call fcn.14001eb70
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x278]
mov rcx, qword [rax + 0x38]
call fcn.14001dbc0
mov rcx, qword [rsp + 0x40]
mov r8, rax
lea rdx, str.currentVersion
call fcn.14001eb70
mov ecx, dword [rsp + 0x270]
mov rdx, qword [rsp + 0x268]
call fcn.140019130
cmp eax, 0
je 0x1400143b4
mov rcx, qword [rsp + 0x268]
call fcn.1400141a0
mov ecx, dword [rsp + 0x270]
call fcn.140018bd0
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
mov rcx, qword [rsp + 0x268]
call fcn.1400141a0
mov ecx, dword [rsp + 0x270]
call fcn.140018c00
mov qword [rsp + 0x260], rax
mov ecx, dword [rsp + 0x270]
call fcn.140018bd0
cmp qword [rsp + 0x260], 0
jne 0x140014400
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
mov rcx, qword [rsp + 0x260]
lea rdx, [0x140034b14]
call fcn.14001d640
mov rcx, rax
call fcn.14001e040
mov dword [rsp + 0x25c], eax
cmp dword [rsp + 0x25c], 1
je 0x14001444e
mov rcx, qword [rsp + 0x260]
call fcn.1400141a0
mov dword [rsp + 0x284], 0
jmp 0x140014640
mov rcx, qword [rsp + 0x260]
call fcn.1400141a0
lea rcx, [0x140034ae7]
mov edx, 0x2707
call fcn.140018a60
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jge 0x140014491
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
jmp 0x140014496
call fcn.14001d5a0
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x278]
mov rax, qword [rax]
mov rcx, qword [rax + 0x50]
call fcn.14001dbc0
mov rcx, qword [rsp + 0x20]
mov r8, rax
lea rdx, [0x140034a3e]
call fcn.14001eb70
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x28], rax
lea rcx, str.update_request
call fcn.14001dbc0
mov rcx, qword [rsp + 0x28]
mov r8, rax
lea rdx, [0x140034af4]
call fcn.14001eb70
mov ecx, dword [rsp + 0x270]
mov rdx, qword [rsp + 0x268]
call fcn.140019130
cmp eax, 0
je 0x14001454b
mov rcx, qword [rsp + 0x268]
call fcn.1400141a0
mov ecx, dword [rsp + 0x270]
call fcn.140018bd0
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
mov rcx, qword [rsp + 0x268]
call fcn.1400141a0
mov dword [rsp + 0x258], 0
mov ecx, dword [rsp + 0x270]
lea rdx, [rsp + 0x258]
call fcn.140018f40
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
jne 0x14001459e
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x200
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x278]
mov r8, qword [rax + 0x30]
lea rdx, str._s_e_wings_new.exe
call fcn.140013d50
lea rcx, [rsp + 0x50]
lea rdx, [0x140034b3d]
call sub.msvcrt.dll_fopen
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14001460c
mov rcx, qword [rsp + 0x250]
call sub.msvcrt.dll_free
mov dword [rsp + 0x284], 0xffffffff
jmp 0x140014640
mov rcx, qword [rsp + 0x250]
movsxd r8, dword [rsp + 0x258]
mov r9, qword [rsp + 0x48]
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_fclose
mov dword [rsp + 0x284], 1
mov eax, dword [rsp + 0x284]
add rsp, 0x288
ret