Function at 0x140013800
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov r12, r8
mov r15, rdx
mov rdi, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x1405a7fc8], eax
jg 0x140013ca0
mov rcx, qword [rdi + 0x68]
mov qword [rdi + 0x68], rbx
test rcx, rcx
je 0x14001385a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x14001386d
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x60], rbx
cmp qword [0x1405a7fe0], rbx
je 0x140013c85
mov ecx, 0x20000
call fcn.1400de56c
mov r13, rax
mov qword [rbp + 0x30], rax
mov ecx, 0x1000
call fcn.1400de56c
mov qword [rsp + 0x40], rax
mov ecx, 0x800
call fcn.1400de56c
mov qword [rbp + 0x98], rax
mov ecx, 0x800
call fcn.1400de56c
mov rcx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov dword [rsp + 0x60], 0x68
mov qword [rbp - 0x58], r13
mov dword [rbp - 0x50], 0x10000
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 0x800
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x400
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x60], 0x400
cmp byte [rdi + 0x92], 0
je 0x140013943
lea r8, [rdi + 0x78]
lea rdx, [rdi + 0x70]
lea rcx, [rdi + 0x10]
movzx r9d, byte [rdi + 0x91]
call fcn.140112b10
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140016140
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140013c5a
mov rsi, qword [0x1405a7fe0]
mov dword [rbp + 0x80], 1
mov r9d, 4
lea r8, [rbp + 0x80]
lea edx, [r9 + 0x42]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rbx, [rdi + 0x94]
mov eax, dword [rbx]
test eax, eax
jne 0x1400139ab
mov dword [rbx], 0x7530
jmp 0x1400139b3
jns 0x1400139b3
mov dword [rbx], 0xffffffff
mov r9d, 4
mov r8, rbx
lea edx, [r9 - 2]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
lea edx, [r9 + 2]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
lea edx, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
lea edx, [r9 + 3]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rdx, str.ftp:
mov rcx, r15
call fcn.140133bb0
movzx ebx, al
lea r14, [rdi + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 0x100], 0
je 0x140013a50
xor eax, eax
jmp 0x140013a8b
mov eax, ebx
xor eax, 1
lea eax, [rax*2 + 1]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x78]
movzx r8d, word [rbp - 0x7c]
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rdi + 0x60], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x140013c5a
test bl, bl
je 0x140013ad1
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_select
mov r8d, 0x80000000
mov rdx, qword [rbp - 0x58]
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [rdi + 0x68], rax
jmp 0x140013c5a
mov qword [rsp + 0x48], r12
lea rax, [0x1405091e0]
mov qword [rbp - 0x18], rax
xor r12d, r12d
mov qword [rbp - 0x10], r12
lea rdx, str.https:
mov rcx, r15
call fcn.140133bb0
movzx esi, al
shl esi, 0x17
sub esi, 0x7bd80000
mov qword [rbp + 0x38], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [rdi + 0x100], r12b
je 0x140013b1f
mov eax, r12d
jmp 0x140013b5e
mov rbx, qword [rbp - 0x58]
lea rdx, [rdi + 0x98]
lea rcx, [rsp + 0x58]
call fcn.140016140
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], esi
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbx
mov rdx, qword [rax]
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rdi + 0x68], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x68], 0
je 0x140013c34
mov qword [rbp - 4], r12
mov dword [rbp + 4], r12d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov dword [rbp - 8], 0x38
lea rdx, [rdi + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140016140
mov rcx, qword [rax]
mov qword [rbp + 8], rcx
mov rax, qword [rdi + 0x70]
mov rdx, r12
movzx ecx, byte [rax]
inc rax
test cl, cl
jns 0x140013be3
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x140013be7
nop word [rax + rax]
inc rax
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
je 0x140013bd0
inc rdx
jmp 0x140013bb1
test ecx, ecx
je 0x140013bec
inc rdx
jmp 0x140013bb1
mov dword [rbp + 0x10], edx
mov eax, dword [rdi + 0x80]
mov dword [rbp + 0x24], eax
mov qword [rbp - 0x30], rdi
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.140013cf0
test al, al
jne 0x140013c5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x140013c34
lea rcx, [rbp - 0x30]
call fcn.140013cf0
test al, al
jne 0x140013c5a
mov rcx, qword [rdi + 0x68]
mov qword [rdi + 0x68], r12
test rcx, rcx
je 0x140013c47
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x140013c5a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x60], r12
mov rcx, qword [rsp + 0x50]
call fcn.1400d4bdc
nop
mov rcx, qword [rbp + 0x98]
call fcn.1400d4bdc
nop
mov rcx, qword [rsp + 0x40]
call fcn.1400d4bdc
nop
mov rcx, r13
call fcn.1400d4bdc
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1405a7fc8]
call fcn.1400c9e58
cmp dword [0x1405a7fc8], 0xffffffff
jne 0x140013847
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.juce
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [0x1405a7fe0], rax
lea rcx, [0x1405a7fc8]
call fcn.1400c9dec
jmp 0x140013847