Function at 0x180046740
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x12b0
call fcn.1800dcb90
sub rsp, rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [0x18017ccfc]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1800467f2
mov rax, qword [rsp + 0x12c8]
mov dword [rax], 0
mov rax, qword [rsp + 0x12c8]
add rax, 8
mov rcx, rax
call fcn.180005360
mov rax, qword [rsp + 0x12c8]
add rax, 0x20
mov rcx, rax
call fcn.180005360
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x12d8]
call fcn.1800059c0
mov rax, qword [rsp + 0x12c8]
jmp 0x18004702a
mov rax, qword [rsp + 0x12c0]
add rax, 0x70
mov rcx, rax
call fcn.1800058d0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
lea rcx, [0x180140dd0]
mov qword [rsp + 0x20], rcx
lea r9, [0x180140dd0]
mov r8w, 0x1bb
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x12c0]
add rax, 0x70
mov rcx, rax
call fcn.1800058d0
mov rcx, rax
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
cmp qword [rsp + 0x70], 0
jne 0x1800468d5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x12c8]
mov dword [rax], 0
mov rax, qword [rsp + 0x12c8]
add rax, 8
mov rcx, rax
call fcn.180005360
mov rax, qword [rsp + 0x12c8]
add rax, 0x20
mov rcx, rax
call fcn.180005360
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x12d8]
call fcn.1800059c0
mov rax, qword [rsp + 0x12c8]
jmp 0x18004702a
mov rax, qword [rsp + 0x12c0]
add rax, 0xb0
mov rcx, rax
call fcn.1800058d0
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x12d0]
call fcn.1800058d0
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x84880100
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1800469c7
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x12c8]
mov dword [rax], 0
mov rax, qword [rsp + 0x12c8]
add rax, 8
mov rcx, rax
call fcn.180005360
mov rax, qword [rsp + 0x12c8]
add rax, 0x20
mov rcx, rax
call fcn.180005360
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x12d8]
call fcn.1800059c0
mov rax, qword [rsp + 0x12c8]
jmp 0x18004702a
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x12e0]
call fcn.1800050e0
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x12e0]
call fcn.180005270
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x12d8]
call fcn.1800058d0
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x180046a78
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x20], 0
mov r9d, 7
mov r8d, 0x2f0c
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetErrorDlg]
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 5
jle 0x180046a73
jmp 0x180046a78
jmp 0x1800469cf
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x7c], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x60]
mov edx, 0x20000013
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov rax, qword [rsp + 0x12c0]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x10], ecx
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
xor r8d, r8d
mov edx, socket
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180046e56
lea rcx, [rsp + 0x50]
call fcn.1800053b0
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x5c]
add eax, 0x64
mov eax, eax
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x1a0]
call fcn.180051840
nop
xor edx, edx
lea rcx, [rsp + 0x1a0]
call fcn.1800050b0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8, rax
mov edx, socket
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180046e49
lea rcx, [rsp + 0x51]
call fcn.1800053b0
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1a0]
call fcn.180005170
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x1a0]
call fcn.180005210
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xd8], rax
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x1d8]
call fcn.180007f70
nop
lea rax, [rsp + 0x230]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0x52]
call fcn.180047320
mov rcx, rax
call fcn.180050010
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.180005af0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0x1d8]
mov rcx, qword [rsp + 0xf8]
call fcn.180005b50
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x110], rax
mov r9, qword [rsp + 0x108]
mov r8, qword [rsp + 0x110]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x44]
call fcn.1800470a0
nop
lea rcx, [rsp + 0x180]
call fcn.180020a60
movzx eax, al
test eax, eax
jne 0x180046d12
mov r8d, 0xa
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.180043bd0
mov rcx, qword [rsp + 0x12c0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x12c0]
mov eax, dword [rax]
add eax, 0x3e8
mov rcx, qword [rsp + 0x12c0]
mov dword [rcx + 8], eax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x118], rax
lea rdx, [rsp + 0x203]
lea rcx, [rsp + 0x53]
call fcn.180047350
mov rcx, rax
call fcn.180050010
mov rdx, rax
mov rcx, qword [rsp + 0x118]
call fcn.180005af0
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x130], rax
lea rdx, [rsp + 0x1d8]
mov rcx, qword [rsp + 0x130]
call fcn.180005b50
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x148], rax
mov r9, qword [rsp + 0x140]
mov r8, qword [rsp + 0x148]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x44]
call fcn.1800470a0
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x180]
call fcn.1800059f0
lea rcx, [rsp + 0x210]
call fcn.1800059c0
lea rcx, [rsp + 0x180]
call fcn.180020a60
movzx eax, al
test eax, eax
jne 0x180046e2d
mov r8d, 0xa
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.180043bd0
mov dword [rsp + 0x84], eax
lea rcx, [rsp + 0x180]
call fcn.1800059c0
nop
lea rcx, [rsp + 0x1d8]
call fcn.1800059c0
nop
lea rcx, [rsp + 0x1a0]
call fcn.180005290
lea rdx, [0x180046720]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor eax, eax
cmp eax, 1
je 0x180046fcd
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
lea r9, [rsp + 0x58]
mov r8d, 0x1000
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x58], 0
jne 0x180046eb8
jmp 0x180046fcd
cmp dword [rsp + 0x80], 0
jne 0x180046ecc
jmp 0x180046fcd
mov rax, qword [rsp + 0x12c0]
cmp dword [rax + 8], 0
je 0x180046f2a
mov rax, qword [rsp + 0x12c0]
mov eax, dword [rax + 0x48]
add eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x12c0]
mov dword [rcx + 0x48], eax
mov rax, qword [rsp + 0x12c0]
cvtsi2ss xmm0, dword [rax + 0x48]
mov rax, qword [rsp + 0x12c0]
mov eax, dword [rax + 8]
cvtsi2ss xmm1, rax
divss xmm0, xmm1
mulss xmm0, dword [0x18017e90c]
mov rax, qword [rsp + 0x12c0]
movss dword [rax + 4], xmm0
mov rax, qword [rsp + 0x12c0]
add rax, 0x30
mov qword [rsp + 0x178], rax
mov eax, dword [rsp + 0x58]
lea rax, [rsp + rax + 0x2b0]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x12c0]
add rax, 0x30
mov qword [rsp + 0x158], rax
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x158]
call fcn.180005170
mov rax, qword [rax]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2b0]
mov r8, qword [rsp + 0x170]
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0x178]
call fcn.180058d10
jmp 0x180046e68
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x12c0]
add rax, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0x12c8]
call fcn.180048f40
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x12d8]
call fcn.1800059c0
mov rax, qword [rsp + 0x12c8]
add rsp, 0x12b0
pop rdi
ret