Function at 0x10005ac10
Capabilities:
Download url
Parse url
Receive data

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r12, rcx
xor ebx, ebx
mov word [rsp + 0xc0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xc2]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x50], ebx
xor edx, edx
lea r8d, [rbx + 0x60]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [r12 + 0xd8]
call qword [sym.imp.ATL.DLL_AtlComPtrAssign]
mov rcx, qword [r12 + 0x18]
cmp rcx, rbx
je 0x10005aca6
mov qword [r12 + 0x18], rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp qword [r12], rbx
jne 0x10005acb3
mov esi, ebx
jmp 0x10005af51
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jne 0x10005acc7
mov esi, ebx
jmp 0x10005af51
mov edx, 0x28
mov rcx, rdi
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x10005acdd
lea rdi, [rax + 2]
cmp rdi, rbx
je 0x10005ad04
mov r13d, 0x22
cmp word [rdi], r13w
je 0x10005acf9
lea esi, [r13 + 5]
cmp word [rdi], si
je 0x10005acfe
jmp 0x10005ad0d
mov esi, 0x27
add rdi, 2
jmp 0x10005ad0d
mov esi, 0x27
lea r13d, [rsi - 5]
mov edx, 0x29
mov rcx, rdi
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x10005ad22
mov word [rax], bx
mov edx, r13d
mov rcx, rdi
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x10005ad37
mov word [rax], bx
jmp 0x10005ad49
mov edx, esi
mov rcx, rdi
call sub.msvcrt.dll_wcsrchr
cmp rax, rbx
je 0x10005ad49
mov word [rax], bx
mov dword [rsp + 0x50], 0x68
mov r13d, 1
mov dword [rsp + 0x60], r13d
mov edx, 0x104
lea rcx, [rsp + 0xc0]
lea rax, [rsp + 0xc0]
mov r8, rdi
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, rbx
je 0x10005ad99
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x10005ad99
mov word [rcx], ax
add rcx, 2
sub rdx, r13
jne 0x10005ad77
cmp rdx, rbx
jne 0x10005ada2
sub rcx, 2
mov word [rcx], bx
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x28], r9d
lea rax, str.http
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x58]
mov edx, r13d
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x10005ae04
mov rdx, rdi
lea rcx, [r12 + 0x18]
call fcn.100007e60
mov esi, eax
cmp eax, ebx
jl 0x10005af51
jmp 0x10005ae34
mov rdx, qword [r12 + 8]
lea rcx, [r12 + 0x18]
call fcn.10000b56c
mov esi, eax
cmp eax, ebx
jl 0x10005af51
mov rdx, rdi
lea rcx, [r12 + 0x18]
call fcn.100049328
mov esi, eax
cmp eax, ebx
jl 0x10005af51
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, qword [r12 + 0x18]
mov rcx, qword [rsp + 0x38]
call sub.urlmon.dll_URLOpenBlockingStreamW
cmp eax, ebx
jl 0x10005af4e
mov qword [rsp + 0x40], rbx
mov rcx, qword [0x1000da5e8]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [rax + 0x208]
nop
mov qword [rsp + 0x38], rbx
mov rcx, qword [0x1000da5e8]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
call qword [rax + 0x140]
nop
mov rdx, qword [rsp + 0x38]
lea rcx, [r12 + 0xd8]
call qword [sym.imp.ATL.DLL_AtlComPtrAssign]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10005aebb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [r12 + 0x98], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov dword [r12 + 0x9c], eax
cmp dword [r12 + 0xa0], ebx
jne 0x10005aefb
mov ecx, dword [r12 + 0x98]
mov dword [r12 + 0xa0], ecx
cmp dword [r12 + 0xa4], ebx
jne 0x10005af0d
mov dword [r12 + 0xa4], eax
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x10005af1e
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x10005af51
mov esi, r13d
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10005af6b
mov qword [rsp + 0x30], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10005af76
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, esi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1000031d0
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret