Function at 0x18001a360
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
xor ebx, ebx
mov qword [rax + 8], rbp
mov qword [rax + 0x18], rdi
mov rdi, rcx
mov qword [rax + 0x20], r12
lea rcx, [rax - 0x28]
mov r12, rdx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x10], rbx
mov qword [rax - 0x18], rbx
mov dword [rax - 0x28], ebx
call fcn.18001aef0
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001a3d7
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a3c0
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x5f]
call rax
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001a428
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a411
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x27]
call rax
mov rax, qword [0x18002a8f0]
test rax, rax
jne 0x18001a479
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a462
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetSetOptionA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f0], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x25]
call rax
mov rax, qword [0x18002a8d8]
test rax, rax
jne 0x18001a4ca
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a4b3
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetOpenA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8d8], rax
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call rax
mov rbp, rax
test rax, rax
jne 0x18001a4f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18001a608
movzx r8d, word [rdi + 0x9a]
lea rdx, [rdi + 0x9c]
mov rcx, rax
mov qword [rsp + 0x68], rsi
call fcn.18001b550
mov rsi, rax
test rax, rax
jne 0x18001a523
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18001a5bb
mov rcx, qword [rdi + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001a573
nop dword [rax]
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.18001a630
mov ebx, eax
test eax, eax
jne 0x18001a573
cmp dword [rdi + 0x1b4], 4
je 0x18001a573
mov rcx, qword [rdi + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18001a540
mov rax, qword [0x18002a8f8]
test rax, rax
jne 0x18001a5b6
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a59f
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetCloseHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f8], rax
mov rcx, rsi
call rax
mov rax, qword [0x18002a8f8]
mov rsi, qword [rsp + 0x68]
test rax, rax
jne 0x18001a603
mov rax, qword [0x18002a8b8]
test rax, rax
jne 0x18001a5ec
lea rcx, str.wininet
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18002a8b8], rax
lea rdx, str.InternetCloseHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a8f8], rax
mov rcx, rbp
call rax
mov rcx, qword [rsp + 0x38]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
test rcx, rcx
je 0x18001a627
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
add rsp, 0x50
pop rbx
ret