Function at 0x140018e68
Capabilities:
Receive http response
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1050]
mov eax, 0x1150
call fcn.140054300
sub rsp, rax
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x1040], rax
mov rdi, rcx
mov qword [rbp - 0x78], rcx
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
or r12, 0xffffffffffffffff
mov eax, dword [rdx + rcx]
cmp dword [0x1400ad250], eax
jle 0x140018efa
lea rcx, [0x1400ad250]
call fcn.140052658
cmp dword [0x1400ad250], r12d
jne 0x140018efa
call fcn.14000bc98
lea rcx, [0x140058d90]
call fcn.1400529a0
nop
lea rcx, [0x1400ad250]
call fcn.1400525f8
lea rdx, [0x1400ad1e8]
lea rcx, [rbp - 0x40]
call fcn.14000e3b8
nop
movzx eax, word [0x1400ad208]
mov word [rbp - 0x20], ax
lea rdx, [0x1400ad210]
lea rcx, [rbp - 0x18]
call fcn.14000e3b8
nop
lea rdx, [0x1400ad230]
lea rcx, [rbp + 8]
call fcn.14000e3b8
nop
lea rcx, [rbp - 0x70]
call fcn.140018638
nop
lea rax, str.application_octet_stream
mov qword [rbp + 0x30], rax
xor r15d, r15d
mov qword [rbp + 0x38], r15
lea rbx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rbx, qword [rbp + 8]
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rsi, qword [rbp - 0x40]
movzx r14d, word [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.140017708
cmp qword [rax + 0x18], 8
jb 0x140018f89
mov rax, qword [rax]
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
movzx r9d, r14w
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140018a40
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140018fc8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
call fcn.140009db8
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov rsi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140019119
mov r14d, 0x1000
jmp 0x140019021
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1400190eb
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400190a1
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140018ff5
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140019055
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140019066
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov qword [rdi + 0x20], r12
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019240
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140019240
mov rcx, qword [rbp + 0x1078]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x15e
call fcn.14001d608
nop
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400190d5
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140019066
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140019066
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140019106
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001913b
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x14001913b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001912a
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001913b
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001915f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x78], r12
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000e3b8
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov r14, qword [rsp + 0x68]
lea rdx, [r14 - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400191de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x68], rsi
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
seta al
mov rcx, qword [rbp + 0x1078]
test al, al
jne 0x140019293
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
mov qword [rdi + 0x20], rsi
mov qword [rsp + 0x68], r12
movdqa xmm0, xmmword [0x140063e20]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
mov rcx, qword [rbp - 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019240
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14001925c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
call fcn.140009db8
nop
lea rcx, [rbp - 0x40]
call fcn.14000447c
mov rax, rdi
mov rcx, qword [rbp + 0x1040]
xor rcx, rsp
call fcn.1400521d0
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x178
call fcn.14000e3a4
int3