Function at 0x1400049c0
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14001b030]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov r12, rcx
lea r13, [rcx + 0x80]
xor r14d, r14d
mov qword [r13], r14
mov dword [rcx + 0x64], r14d
mov rbx, qword [0x14001c2a0]
mov qword [rsp + 0x48], rbx
lea ecx, [r14 + 8]
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x140004a36
lea rcx, [rsp + 0x50]
mov qword [rax], rcx
jmp 0x140004a39
mov rax, r14
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov edx, 0x1000
lea rcx, [rsp + 0x50]
call fcn.140004f40
mov ebp, r14d
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [r12 + 0x28], 5
mov qword [r12 + 0x78], r13
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
lea rdx, [r12 + 0x68]
lea r8, [rsp + 0xd0]
lea rcx, vtable.CUtil.0
call fcn.140004130
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 0x10
cmovae rdx, qword [rsp + 0xd8]
mov r15d, r12d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x84000300
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [r12 + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
test rax, rax
jne 0x140004b12
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140004b02
mov ebp, 0x80004005
jmp 0x140004d71
mov edx, 0xea60
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x44], r14d
mov rdi, r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, qword [r13]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140004baa
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x140004ba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004b96
mov ecx, dword [rsp + 0x44]
inc ecx
call fcn.14000cb50
mov rdi, rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
mov r8, rax
mov edx, 0x13
mov rcx, qword [r13]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140004b40
test rdi, rdi
je 0x140004baa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140004bad
mov ebp, 0x80004005
jmp 0x140004d71
mov ebp, 0x80004005
jmp 0x140004d71
mov eax, r14d
mov r8, rdi
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140003020
mov rcx, rdi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov dword [rsp + 0x44], r14d
lea rdi, [0x140013148]
mov rbx, qword [rsp + 0x48]
mov rsi, rbx
mov ecx, 4
repe cmpsw word [rsi], word [rdi]
je 0x140004bec
mov ebp, 0x80004005
jmp 0x140004d71
movzx edi, byte [rsp + 0x40]
movzx esi, byte [rsp + 0x40]
nop word [rax + rax]
mov dword [r12 + 0x28], 6
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x44]
mov rcx, qword [r13]
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x140004c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140004d5a
mov edx, 0xea60
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140004d6e
lea ecx, [rax + 1]
call fcn.14000cb50
mov r14, rax
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call sub.MSVCR90.dll_memset
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [r12 + 0x28], 7
xor eax, eax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0xa8], r14
mov dword [rsp + 0x88], 0x38
mov r9, r15
mov r8d, 1
lea rdx, [rsp + 0x88]
mov rcx, qword [r13]
call qword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x140004d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140004d64
mov edx, 0xea60
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov byte [rsp + 0x40], al
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
add r8, rdx
mov byte [rsp + 0x30], al
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x20], dil
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0xc0]
call fcn.1400050e0
mov rcx, r14
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x140004c00
mov ebp, 0x80004005
xor r14d, r14d
jmp 0x140004d71
mov ebp, 0x80004005
xor r14d, r14d
jmp 0x140004d71
xor r14d, r14d
mov rcx, qword [r13]
test rcx, rcx
je 0x140004d80
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x68]
je 0x140004e00
mov ecx, 0x28
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140004df6
mov rcx, qword [rsp + 0x70]
mov r13, rcx
mov rdi, qword [rsp + 0x68]
sub r13, rdi
cmp rdi, rcx
jbe 0x140004dc1
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x140004dd6
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x140004dd9
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140004de5
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r8, r13
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
jmp 0x140004df9
mov rax, r14
mov qword [r12 + 0x70], rax
jmp 0x140004e2a
mov ecx, 0x28
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140004e22
mov rcx, rax
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
jmp 0x140004e25
mov rax, r14
mov qword [r12 + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 0x64], eax
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140004e53
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov rcx, qword [rsp + 0x50]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
nop
lea rcx, [rbx - 0xc]
lea rax, [0x14001c290]
cmp rcx, rax
je 0x140004e97
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
test edx, edx
jg 0x140004e93
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, ebp
jmp 0x140004e99
mov eax, ebp
jmp 0x140004e99
mov eax, ebp
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14000cb70
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret