Function at 0x14002e9e4
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x128
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x14007e090]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, r9
mov rdi, r8
mov qword [rsp + 0x40], r8
mov rax, rdx
mov qword [rsp + 0x38], rdx
mov r12, rcx
xor ebp, ebp
cmp r9, rbp
je 0x14002ea36
mov dword [r9], ebp
cmp rax, rbp
jne 0x14002ea57
mov r8d, recvfrom
lea rdx, str.invalid_param_2
mov rcx, rdi
call fcn.1400043ec
xor al, al
jmp 0x14002ee78
mov r15, rbp
call qword [sym.imp.libcurl64.dll_curl_easy_init]
mov rbx, rax
cmp rax, rbp
jne 0x14002ea84
mov r8d, recvfrom
lea rdx, str.easy_init_failed
mov rcx, rdi
call fcn.1400043ec
xor al, al
jmp 0x14002ee78
mov r13, qword [0x140084170]
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov rax, qword [0x140084140]
mov qword [rsp + 0x20], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov esi, recvfrom
mov rdi, qword [rsp + 0x20]
cmp rdi, rbp
je 0x14002eabf
cmp rdi, rax
je 0x14002eac4
call fcn.140042ffc
mov rbp, qword [rsp + 0x28]
cmp rbp, r13
je 0x14002ebbf
test rdi, rdi
jne 0x14002eae1
call fcn.140042ffc
xor r11d, r11d
jmp 0x14002eae4
mov r11, qword [rdi]
cmp rbp, qword [r11 + 0x30]
jne 0x14002eaef
call fcn.140042ffc
lea r8, [0x14006828c]
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x48]
call fcn.140029f18
mov qword [rsp + 0x30], rax
test rdi, rdi
jne 0x14002eb17
call fcn.140042ffc
xor edx, edx
jmp 0x14002eb1a
mov rdx, qword [rdi]
cmp rbp, qword [rdx + 0x30]
jne 0x14002eb25
call fcn.140042ffc
lea r8, [rbp + 0x40]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14002d040
cmp qword [rax + 0x20], 0x10
jb 0x14002eb45
mov rdx, qword [rax + 8]
jmp 0x14002eb49
lea rdx, [rax + 8]
mov rcx, r15
call qword [sym.imp.libcurl64.dll_curl_slist_append]
mov r15, rax
cmp qword [rsp + 0x90], 0x10
jb 0x14002eb6a
mov rcx, qword [rsp + 0x78]
call fcn.140042a98
mov qword [rsp + 0x90], rsi
xor ebp, ebp
mov qword [rsp + 0x88], rbp
mov byte [rsp + 0x78], bpl
cmp qword [rsp + 0x68], 0x10
jb 0x14002eb93
mov rcx, qword [rsp + 0x50]
call fcn.140042a98
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rbp
mov byte [rsp + 0x50], bpl
lea rcx, [rsp + 0x20]
call fcn.140004db8
mov r13, qword [0x140084170]
mov rax, qword [0x140084140]
jmp 0x14002eab0
mov qword [rsp + 0x108], rsi
xor ebp, ebp
mov qword [rsp + 0x100], rbp
mov byte [rsp + 0xf0], bpl
mov rax, qword [0x140083138]
cmp rax, rbp
je 0x14002ec28
mov rdx, r12
lea rcx, [rsp + 0xc0]
call rax
nop
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.140003f28
nop
cmp qword [rsp + 0xe0], 0x10
jb 0x14002ec42
mov rcx, qword [rsp + 0xc8]
call fcn.140042a98
jmp 0x14002ec42
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0xe8]
call fcn.140003f28
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_reset]
lea r8, [rsp + 0xf0]
cmp qword [rsp + 0x108], 0x10
cmovae r8, qword [rsp + 0xf0]
mov edx, 0x2712
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
xor r8d, r8d
mov edx, 0x2714
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
mov edx, 0x4e
lea r8d, [rdx - 0x49]
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
lea r8, [0x14002ee9c]
mov edx, 0x4e2b
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
mov r8, qword [rsp + 0x38]
mov edx, 0x2711
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
mov r8, r15
mov edx, 0x2727
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
lea r8, [0x1400667d2]
mov r13d, 0x272f
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
lea r8, [0x1400667d2]
lea edx, [r13 + 0x47]
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
cmp byte [0x14008298a], bpl
je 0x14002ed37
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
cmp qword [0x1400801d0], rbp
je 0x14002ed65
lea r8, [0x1400801c0]
cmp qword [0x1400801d8], 0x10
cmovae r8, qword [0x1400801c0]
mov edx, 0x2751
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
cmp byte [0x1400837f0], bpl
je 0x14002eda2
lea rsi, [0x1400837f0]
mov r8, rsi
mov edx, 0x2762
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, ebp
je 0x14002eda2
mov r8, rsi
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_setopt]
cmp qword [r12 + 0x20], 0x10
jb 0x14002edb1
mov r12, qword [r12 + 8]
jmp 0x14002edb5
add r12, 8
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rbp
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_perform]
mov esi, eax
cmp r15, rbp
je 0x14002edee
mov rcx, r15
call qword [sym.imp.libcurl64.dll_curl_slist_free_all]
cmp esi, ebp
je 0x14002ee3e
mov ecx, esi
call qword [sym.imp.libcurl64.dll_curl_easy_strerror]
mov rdx, rax
xor eax, eax
mov rcx, rdi
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rsp + 0x40]
call fcn.1400043ec
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_cleanup]
nop
cmp qword [rsp + 0x108], 0x10
jb 0x14002ee3a
mov rcx, qword [rsp + 0xf0]
call fcn.140042a98
xor al, al
jmp 0x14002ee78
cmp r14, rbp
je 0x14002ee54
mov r8, r14
mov edx, 0x200002
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_getinfo]
mov rcx, rbx
call qword [sym.imp.libcurl64.dll_curl_easy_cleanup]
nop
cmp qword [rsp + 0x108], 0x10
jb 0x14002ee76
mov rcx, qword [rsp + 0xf0]
call fcn.140042a98
mov al, 1
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140042a40
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret