Function at 0x1800156a0
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 r9d, dword [0x18067a7b8]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + r9*8]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x1806c6fd8], eax
jg 0x180015b50
mov rcx, qword [rdi + 0x68]
mov qword [rdi + 0x68], rbx
test rcx, rcx
je 0x180015702
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x180015715
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x60], rbx
cmp qword [0x1806c6ff8], rbx
je 0x180015b35
mov ecx, 0x20000
call fcn.180124500
mov r13, rax
mov qword [rbp + 0x30], rax
mov ecx, 0x1000
call fcn.180124500
mov qword [rsp + 0x40], rax
mov ecx, 0x800
call fcn.180124500
mov qword [rbp + 0x98], rax
mov ecx, 0x800
call fcn.180124500
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 0x1800157eb
lea r8, [rdi + 0x78]
lea rdx, [rdi + 0x70]
lea rcx, [rdi + 0x10]
movzx r9d, byte [rdi + 0x91]
call fcn.180159dc0
mov rdx, r15
lea rcx, [rbp + 0x80]
call fcn.180017f90
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 0x180015b0a
mov rsi, qword [0x1806c6ff8]
mov dword [rbp + 0x80], 1
mov r9d, 4
lea r8, [rbp + 0x80]
mov edx, 0x46
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rbx, [rdi + 0x94]
mov eax, dword [rbx]
test eax, eax
jne 0x180015856
mov dword [rbx], 0x7530
jmp 0x18001585e
jns 0x18001585e
mov dword [rbx], 0xffffffff
mov r9d, 4
mov r8, rbx
mov edx, 2
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
mov edx, 6
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
mov edx, 5
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
mov edx, 8
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rbx
mov edx, 7
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rdx, str.ftp:
mov rcx, r15
call fcn.18017b740
movzx ebx, al
lea r14, [rdi + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 0x100], 0
je 0x180015900
xor eax, eax
jmp 0x18001593b
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 0x180015b0a
test bl, bl
je 0x180015981
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 0x180015b0a
mov qword [rsp + 0x48], r12
lea rax, [0x1805a8930]
mov qword [rbp - 0x18], rax
xor r12d, r12d
mov qword [rbp - 0x10], r12
lea rdx, str.https:
mov rcx, r15
call fcn.18017b740
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 0x1800159cf
mov eax, r12d
jmp 0x180015a0e
mov rbx, qword [rbp - 0x58]
lea rdx, [rdi + 0x98]
lea rcx, [rsp + 0x58]
call fcn.180017f90
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 0x180015ae4
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.180017f90
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 0x180015a93
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
jne 0x180015a97
nop word [rax + rax]
inc rax
movzx ecx, byte [rax]
and cl, 0xc0
cmp cl, 0x80
je 0x180015a80
inc rdx
jmp 0x180015a61
test ecx, ecx
je 0x180015a9c
inc rdx
jmp 0x180015a61
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.180015ba0
test al, al
jne 0x180015b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x180015ae4
lea rcx, [rbp - 0x30]
call fcn.180015ba0
test al, al
jne 0x180015b0a
mov rcx, qword [rdi + 0x68]
mov qword [rdi + 0x68], r12
test rcx, rcx
je 0x180015af7
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x180015b0a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x60], r12
mov rcx, qword [rsp + 0x50]
call fcn.180124068
nop
mov rcx, qword [rbp + 0x98]
call fcn.180124068
nop
mov rcx, qword [rsp + 0x40]
call fcn.180124068
nop
mov rcx, r13
call fcn.180124068
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, [0x1806c6fd8]
call fcn.18011da70
cmp dword [0x1806c6fd8], 0xffffffff
jne 0x1800156ef
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 [0x1806c6ff8], rax
lea rcx, [0x1806c6fd8]
call fcn.18011da04
jmp 0x1800156ef