Function at 0x1004d8370
Capabilities:
Check http status code

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
cmp dword [rcx + 0x64], 0xffffffff
mov rsi, rcx
mov rdi, rdx
mov r15, r8
je 0x1004d8476
test r8, r8
je 0x1004d8476
mov r10, qword [rcx + 0x58]
mov rbx, qword [0x10070aba0]
mov r13d, dword [0x10070ab98]
test r10, r10
je 0x1004d8608
cmp r9d, 3
je 0x1004d8490
mov eax, dword [rsi + 0x64]
mov dword [rbp - 0x60], eax
sub eax, 1
cmp qword [0x10070ab90], rsi
mov dword [rbp - 0x58], eax
je 0x1004d86f8
mov eax, dword [rbp - 0x58]
test eax, eax
jle 0x1004d88df
movsxd rbx, dword [r10]
movsxd r14, eax
lea rcx, [r10 + 0x10]
mov eax, 1
mov rdx, rbx
add rbx, 1
cmp rbx, rdi
jle 0x1004d842d
jmp 0x1004d88ff
movsxd rdx, dword [rcx]
lea r8, [rax + 1]
lea rcx, [rcx + 0x10]
add rdx, rbx
cmp rdx, rdi
jg 0x1004d8670
mov rax, r8
mov rbx, rdx
mov r12, rax
mov r13d, eax
mov r11, rcx
shl r12, 4
cmp r14, rax
jne 0x1004d8410
mov rax, qword [r11 + 8]
cmp r9d, 2
je 0x1004d8681
add rax, r15
mov qword [r11 + 8], rax
cmp r9d, 1
je 0x1004d84b0
mov qword [0x10070ab90], rsi
mov qword [0x10070ab88], rdi
mov qword [0x10070aba0], rbx
mov dword [0x10070ab98], r13d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp qword [rsi], 1
je 0x1004d88c4
mov eax, dword [rsi + 0x64]
mov dword [rbp - 0x60], eax
sub eax, 1
mov dword [rbp - 0x58], eax
jmp 0x1004d83e2
mov eax, dword [r11]
add eax, 1
mov edx, dword [rbp - 0x60]
mov dword [r11], eax
mov eax, dword [rsi + 0x60]
add edx, 1
cmp edx, eax
jge 0x1004d87c0
lea rdx, [r10 + r12]
mov eax, dword [rdx]
cmp eax, 0x31f
jle 0x1004d8760
mov r8d, dword [rsi + 0x64]
add r14, 1
mov rax, r14
sub r8d, r13d
shl rax, 4
movsxd r8, r8d
lea rcx, [r10 + rax]
mov qword [rbp - 0x58], rax
shl r8, 4
call sub.msys_2.0.dll_memmove
cmp qword [rsi], rbx
jle 0x1004d894c
mov qword [rbp - 0x60], r12
xor r14d, r14d
xor r13d, r13d
jmp 0x1004d8576
mov eax, r12d
sub eax, r14d
mov r14d, 0x190
lea edi, [rax + 0x18f]
mov eax, dword [rsi + 0x1e70]
test eax, eax
jne 0x1004d85cd
test r12d, r12d
jne 0x1004d8650
mov eax, dword [r15 + 0xc]
movsxd rdi, edi
mov edx, dword [r15 + rdi*4 + 0x18]
and edx, 0x7fffffff
sub eax, edx
add r13, rax
cmp qword [rsi], rbx
jle 0x1004d8870
cmp r14d, 0x190
je 0x1004d8870
mov r8d, 0x13
mov rdx, rbx
mov rcx, rsi
call fcn.1004d7f40
test rax, rax
je 0x1004d88b8
mov r15, qword [rax + 0x28]
mov rax, qword [rsi + 0x48]
mov r12d, ebx
sub r12d, dword [rsi + 0x40]
mov edi, eax
sub edi, dword [rsi + 0x40]
lea rbx, [rax + 1]
lea eax, [rdi + 1]
sub eax, r12d
add eax, r14d
cmp eax, 0x190
jg 0x1004d8520
mov r14d, eax
mov eax, dword [rsi + 0x1e70]
test eax, eax
je 0x1004d8540
cmp edi, r12d
jge 0x1004d8560
movsxd rdi, edi
nop dword [rax]
mov ecx, dword [r15 + rdi*4 + 0x18]
add rdi, 1
and ecx, 0x7fffffff
add rcx, r15
call sub.msys_2.0.dll_strlen
add eax, 1
cdqe
add r13, rax
cmp r12d, edi
jg 0x1004d85d8
jmp 0x1004d8560
mov ecx, 0x640
mov dword [rbp - 0x58], r9d
call sym.vim.exe_alloc
mov r9d, dword [rbp - 0x58]
test rax, rax
mov qword [rsi + 0x58], rax
mov r10, rax
je 0x1004d88b8
movabs rax, 0x100000064
mov qword [rsi + 0x60], rax
mov dword [r10], 1
mov qword [r10 + 8], 1
jmp 0x1004d83bf
lea edx, [r12 - 1]
movsxd rdx, edx
mov eax, dword [r15 + rdx*4 + 0x18]
and eax, 0x7fffffff
jmp 0x1004d854d
mov r14, rax
mov rax, qword [r11 + 8]
cmp r9d, 2
jne 0x1004d844d
mov ebx, dword [r11]
sub rax, r15
mov qword [0x10070ab90], 0
mov qword [r11 + 8], rax
lea edx, [rbx - 1]
mov dword [r11], edx
cmp dword [rbp - 0x58], r13d
jle 0x1004d8800
mov ecx, dword [r11 + 0x10]
add ecx, edx
cmp ecx, 0x190
jle 0x1004d884f
test r13d, r13d
jne 0x1004d8800
test edx, edx
jg 0x1004d8476
movsxd r8, dword [rbp - 0x58]
lea rdx, [r10 + 0x10]
mov rcx, r10
mov dword [rsi + 0x64], r8d
shl r8, 4
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp sub.msys_2.0.dll_memmove
mov rax, qword [0x10070ab88]
add rax, 1
cmp rax, rdi
jne 0x1004d83e2
cmp r9d, 1
jne 0x1004d83e2
movsxd r14, r13d
mov r12, r14
shl r12, 4
lea r11, [r10 + r12]
mov eax, dword [r11]
cmp r13d, dword [rbp - 0x58]
jge 0x1004d874d
movsxd rdx, eax
add rdx, rbx
cmp rdx, rdi
jg 0x1004d874d
add r12, 0x10
add r13d, 1
mov rbx, rdx
lea r11, [r10 + r12]
movsxd r14, r13d
mov eax, dword [r11]
add qword [r11 + 8], r15
jmp 0x1004d84b3
cmp eax, 0x18f
jle 0x1004d845a
mov eax, dword [rsi + 0x64]
lea edx, [rax - 1]
cmp edx, r13d
jne 0x1004d845a
mov rdx, qword [rsi]
mov rcx, rdx
sub rcx, rdi
cmp rcx, 1
jg 0x1004d845a
lea r12, [r14 + 1]
add eax, 1
shl r12, 4
mov dword [rsi + 0x64], eax
add r12, r10
cmp rdx, rdi
jne 0x1004d8956
mov dword [r12], 0
mov qword [r12 + 8], 0
jmp 0x1004d845a
lea edx, [rax + rax*2]
mov rcx, r10
mov qword [rbp - 0x58], r10
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov dword [rsi + 0x60], eax
movsxd rdx, eax
shl rdx, 4
call sub.msys_2.0.dll_realloc
mov r10, qword [rbp - 0x58]
test rax, rax
mov qword [rsi + 0x58], rax
je 0x1004d88a9
mov r10, rax
jmp 0x1004d84ca
mov ecx, dword [r11 - 0x10]
add ecx, edx
cmp edx, 0xa
jle 0x1004d8817
cmp ecx, 0x190
jg 0x1004d8476
add qword [r11 - 8], rax
mov eax, dword [rbp - 0x58]
mov dword [r11 - 0x10], ecx
mov dword [rsi + 0x64], eax
mov esi, eax
cmp eax, r13d
jle 0x1004d8476
movsxd rax, r13d
sub esi, r13d
shl rax, 4
movsxd r8, esi
lea rdx, [r10 + rax + 0x10]
lea rcx, [r10 + rax]
shl r8, 4
jmp 0x1004d86dc
add r13d, 1
movsxd r11, r13d
shl r11, 4
add r11, r10
mov ecx, dword [r11]
mov rax, qword [r11 + 8]
add ecx, dword [r11 - 0x10]
jmp 0x1004d8817
mov r12, qword [rbp - 0x60]
mov ebx, r14d
mov rax, qword [rsi + 0x58]
mov r14, qword [rbp - 0x58]
mov qword [0x10070ab90], 0
add r12, rax
add r14, rax
mov dword [r12], ebx
sub dword [r14], ebx
mov qword [r12 + 8], r13
sub qword [r14 + 8], r13
add dword [rsi + 0x64], 1
jmp 0x1004d8476
mov rcx, r10
call sym.vim.exe_vim_free
nop dword [rax]
mov dword [rsi + 0x64], 0xffffffff
jmp 0x1004d8476
movsxd rax, dword [rsi + 0x24]
mov dword [rsi + 0x64], 1
mov dword [r10], 1
mov qword [r10 + 8], rax
jmp 0x1004d8476
mov rax, qword [r10 + 8]
cmp r9d, 2
je 0x1004d892c
mov r11, r10
xor r12d, r12d
xor r14d, r14d
xor r13d, r13d
mov ebx, 1
jmp 0x1004d844d
mov rax, qword [r10 + 8]
cmp r9d, 2
jne 0x1004d88e9
sub rax, r15
sub edx, 1
mov r11, r10
xor r13d, r13d
mov qword [r10 + 8], rax
mov dword [r10], edx
mov qword [0x10070ab90], 0
jmp 0x1004d86a6
mov qword [0x10070ab90], 0
sub rax, r15
mov qword [r10 + 8], rax
mov eax, dword [r10]
lea edx, [rax - 1]
mov dword [r10], edx
jmp 0x1004d86c1
xor r13d, r13d
xor ebx, ebx
jmp 0x1004d8877
mov r8d, 0x13
mov rcx, rsi
call fcn.1004d7f40
test rax, rax
je 0x1004d88b8
mov rax, qword [rax + 0x28]
mov rcx, qword [rax + 0x10]
mov edx, dword [rax + 8]
cmp rcx, 1
je 0x1004d89a8
mov eax, dword [rax + rcx*4 + 0x10]
and eax, 0x7fffffff
sub eax, edx
cdqe
sub dword [r12 - 0x10], 1
sub qword [r12 - 8], rax
mov qword [r12 + 8], rax
mov dword [r12], 1
jmp 0x1004d845a
mov eax, dword [rax + 0xc]
sub eax, edx
jmp 0x1004d8989