Function at 0x1400dd4f0
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Parse url
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, 0x13400
call fcn.1401d5c30
sub rsp, rax
mov qword [rsp + 0x133e8], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x133f0], rax
mov dword [rsp + 0x133e0], 0
mov dword [rsp + 0x2d28], 0x1770
mov dword [rsp + 0x2d24], 0x84000100
mov eax, dword [rsp + 0x2d24]
or eax, 0xc000
mov dword [rsp + 0x2d24], eax
xor eax, eax
mov word [rsp + 0x2f60], ax
lea rdi, [rsp + 0x2f62]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x2d40], ax
lea rdi, [rsp + 0x2d42]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x13180], ax
lea rdi, [rsp + 0x13182]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x2b10], ax
lea rdi, [rsp + 0x2b12]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x2070], ax
lea rdi, [rsp + 0x2072]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x50], ax
lea rdi, [rsp + 0x52]
xor eax, eax
mov ecx, 0x2000
rep stosb byte [rdi], al
mov dword [rsp + 0x2a90], 0x68
lea rax, [rsp + 0x2f60]
mov qword [rsp + 0x2a98], rax
lea rax, [rsp + 0x2d40]
mov qword [rsp + 0x2aa8], rax
lea rax, [rsp + 0x13180]
mov qword [rsp + 0x2ab8], rax
lea rax, [rsp + 0x2b10]
mov qword [rsp + 0x2ac8], rax
lea rax, [rsp + 0x2070]
mov qword [rsp + 0x2ad8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x2ae8], rax
mov dword [rsp + 0x2aa0], 0x104
mov dword [rsp + 0x2ab0], 0x104
mov dword [rsp + 0x2ac0], 0x104
mov dword [rsp + 0x2ad0], 0x104
mov dword [rsp + 0x2ae0], 0x104
mov dword [rsp + 0x2af0], 0x1000
lea r9, [rsp + 0x2a90]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x13418]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp dword [rsp + 0x2aa4], 4
jne 0x1400dd6f5
mov eax, dword [rsp + 0x2d24]
or eax, 0x800000
mov dword [rsp + 0x2d24], eax
mov eax, dword [rsp + 0x2d24]
or eax, 0x3180
mov dword [rsp + 0x2d24], eax
mov qword [rsp + 0x2068], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.HTTP.CC_UserAgent
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x2068], rax
cmp qword [rsp + 0x2068], 0
jne 0x1400dd766
lea rdx, [0x1402163bc]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rax, qword [rsp + 0x13430]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x13428]
movzx r8d, word [rsp + 0x2ab4]
mov rdx, qword [rsp + 0x2aa8]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x13170], rax
cmp qword [rsp + 0x13170], 0
jne 0x1400dd806
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x1402163cc]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
mov rcx, qword [rsp + 0x2ad8]
call fcn.1400a81f4
mov rdi, rax
mov rcx, qword [rsp + 0x2ae8]
call fcn.1400a81f4
lea rcx, [rdi + rax + 1]
mov eax, 2
mul rcx
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140071aa8
mov qword [rsp + 0x133c8], rax
mov rax, qword [rsp + 0x133c8]
mov qword [rsp + 0x13178], rax
mov rdx, qword [rsp + 0x2ad8]
mov rcx, qword [rsp + 0x13178]
call fcn.1400a9460
mov rdx, qword [rsp + 0x2ae8]
mov rcx, qword [rsp + 0x13178]
call fcn.1400a9434
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x2d24]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str.HTTP_1.0
mov r8, qword [rsp + 0x13178]
lea rdx, [0x1402165d8]
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rsp + 0x2280], rax
cmp qword [rsp + 0x2280], 0
jne 0x1400dd94d
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x13178]
mov qword [rsp + 0x133d0], rax
mov rcx, qword [rsp + 0x133d0]
call fcn.140071ab0
lea rdx, [0x1402163dc]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
mov rax, qword [rsp + 0x13178]
mov qword [rsp + 0x133d8], rax
mov rcx, qword [rsp + 0x133d8]
call fcn.140071ab0
mov dword [rsp + 0x2064], 1
mov r9d, 4
lea r8, [rsp + 0x2064]
mov edx, 0x41
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rdx, str.Accept_Encoding:__gzip__deflate
mov qword [rsp + 0x2d38], rdx
mov rcx, qword [rsp + 0x2d38]
call fcn.1400a81f4
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x2d38]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [rsp + 0x2d30], eax
cmp dword [rsp + 0x2d30], 0
jne 0x1400dda43
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x1402163ec]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
mov qword [rsp + 0x2f50], 0
cmp qword [rsp + 0x13420], 0
je 0x1400dda76
mov r9d, 0x640000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rsp + 0x13420]
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov word [rsp + 0x2290], ax
lea rdi, [rsp + 0x2292]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov dword [rsp + 0x2d20], 0x200000
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2d20]
lea r8, [rsp + 0x2290]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [rsp + 0x2d30], eax
lea rcx, [rsp + 0x2290]
call fcn.1400a947c
mov dword [rsp + 0x2d2c], eax
cmp dword [rsp + 0x2d2c], 0xc8
je 0x1400ddb80
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [rsp + 0x2d2c], 0x191
jne 0x1400ddb36
mov ecx, 0x41
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0x2d2c], 0x192
jne 0x1400ddb4e
mov ecx, 0x701
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14021643c]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
mov dword [rsp + 0x2b00], 0
mov dword [rsp + 0x2060], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2060]
lea r8, [rsp + 0x2b00]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rsp + 0x2f58]
call fcn.140002d50
nop
cmp qword [rsp + 0x13438], 0
je 0x1400ddc51
mov rax, qword [rsp + 0x13438]
cmp dword [rax], 0
jne 0x1400ddc51
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x14021648c]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
lea rcx, [rsp + 0x2f58]
call fcn.140001470
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
mov dword [rsp + 0x13390], 0
lea r9, [rsp + 0x13390]
mov r8d, 0xffff
lea rdx, [rsp + 0x3170]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rsp + 0x13394], eax
cmp dword [rsp + 0x13394], 0
jne 0x1400ddc96
jmp 0x1400dde15
cmp dword [rsp + 0x13394], 0
je 0x1400ddd78
cmp dword [rsp + 0x13390], 0
jbe 0x1400ddd78
mov ecx, dword [rsp + 0x13390]
mov rax, qword [rsp + 0x2f50]
add rax, rcx
mov qword [rsp + 0x2f50], rax
cmp qword [rsp + 0x13420], 0
je 0x1400ddd52
cmp dword [rsp + 0x2b00], 0
je 0x1400ddd12
mov rax, qword [rsp + 0x2f50]
imul rax, rax, 0x64
mov ecx, dword [rsp + 0x2b00]
xor edx, edx
div rcx
xor r9d, r9d
mov r8, rax
mov edx, 0x402
mov rcx, qword [rsp + 0x13420]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x13398]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400ddd52
lea rcx, [rsp + 0x13398]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x13398]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400ddd12
mov eax, dword [rsp + 0x13390]
mov byte [rsp + rax + 0x3170], 0
lea rdx, [rsp + 0x3170]
lea rcx, [rsp + 0x2f58]
call fcn.14004f9b0
jmp 0x1400ddded
cmp dword [rsp + 0x13394], 0
jne 0x1400dddeb
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x140216534]
mov rcx, qword [rsp + 0x13410]
call fcn.140002090
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
lea rcx, [rsp + 0x2f58]
call fcn.140001470
mov rax, qword [rsp + 0x13410]
jmp 0x1400dde82
jmp 0x1400dde15
cmp dword [rsp + 0x2b00], 0
je 0x1400dde0a
mov eax, dword [rsp + 0x2b00]
cmp qword [rsp + 0x2f50], rax
jb 0x1400dde0a
jmp 0x1400dde15
xor eax, eax
cmp eax, 1
jne 0x1400ddbd0
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x13170]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x2068]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rsp + 0x2f58]
call fcn.1400012c0
mov rdx, rax
mov rcx, qword [rsp + 0x13410]
call fcn.1400dd020
mov eax, dword [rsp + 0x133e0]
or eax, 1
mov dword [rsp + 0x133e0], eax
lea rcx, [rsp + 0x2f58]
call fcn.140001470
mov rax, qword [rsp + 0x13410]
mov rcx, qword [rsp + 0x133f0]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x13400
pop rdi
ret