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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rdi
sub rsp, 0x2c8
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140013044
test rdx, rdx
je 0x140013044
mov qword [rax + 0x18], rbp
mov qword [rax - 0x18], rsi
xor esi, esi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov r13d, esi
mov qword [rax - 0x30], r14
mov r14d, esi
mov qword [rax - 0x38], r15
mov r15d, esi
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012a3b
lea r8, [0x140068650]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012a5b
lea r8, [0x140068670]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012a77
mov r8, rbx
lea rdx, [0x140067028]
xor ecx, ecx
call fcn.14000a7b0
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012a97
lea r8, [0x140068680]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012ad1
mov rcx, rdi
call fcn.140008040
mov rdi, rax
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012ac9
mov r8, rdi
lea rdx, [0x140067028]
xor ecx, ecx
call fcn.14000a7b0
mov rcx, rdi
call fcn.14002fc28
lea rax, [0x140068920]
mov qword [rsp + 0x68], rsi
lea rcx, [0x140068928]
mov qword [rsp + 0x70], rax
mov r12, rsi
mov qword [rsp + 0x78], rsi
mov ebp, 7
call fcn.140008330
mov rdi, rax
mov rsi, 0xffffffffffffffff
test rax, rax
je 0x140012c05
mov rdx, rax
mov rcx, rbx
call fcn.14002e9c8
cmp rax, rbx
mov ecx, 8
mov r8, rsi
cmove ebp, ecx
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], r12w
jne 0x140012b30
xor edx, edx
mov rcx, rdi
call fcn.14002ec20
mov rcx, rdi
call fcn.14002fc28
lea r14, [rbp*2]
mov ecx, ebp
lea rax, [r14 + rbx]
nop word [rax + rax]
movsxd r15, ecx
lea rax, [rax + 2]
inc ecx
cmp word [rax], 0x2f
jne 0x140012b60
mov edi, r15d
mov edx, 2
sub edi, ebp
lea eax, [rdi + 2]
movsxd rcx, eax
call fcn.14002f9e8
mov qword [rsp + 0x40], rax
mov rbp, rax
test rax, rax
je 0x140013016
lea eax, [rdi + 1]
movsxd rdx, eax
test eax, eax
jle 0x140012bc2
sub r14, rbp
mov rcx, rbp
lea r8, [r14 + rbx]
nop dword [rax]
movzx eax, word [r8 + rcx]
mov word [rcx], ax
lea rcx, [rcx + 2]
sub rdx, 1
jne 0x140012bb0
mov rcx, rsi
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x140012bc5
mov eax, 1
mov edx, 2
sub rax, r15
add rcx, rax
call fcn.14002f9e8
mov qword [rsp + 0x68], rax
mov r8, rax
test rax, rax
jne 0x140012ceb
mov rcx, rbp
call fcn.14002fc28
mov r15, qword [rsp + 0x40]
mov r14, r12
mov rbx, r12
mov rdi, r12
mov rbp, r12
mov rcx, r15
call fcn.14002fc28
mov rcx, qword [rsp + 0x68]
call fcn.14002fc28
mov r15, qword [rsp + 0x2a0]
mov r12, qword [rsp + 0x2b8]
test r13, r13
je 0x140012c59
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [r13 + r8*2], 0
jne 0x140012c40
add r8, r8
xor edx, edx
mov rcx, r13
call fcn.14002ec20
mov rcx, r13
call fcn.14002fc28
mov r13, qword [rsp + 0x2b0]
test r14, r14
je 0x140012c8b
nop
cmp word [r14 + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x140012c70
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, r14
call fcn.14002ec20
mov rcx, r14
call fcn.14002fc28
mov r14, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2c0]
test rbp, rbp
je 0x140012cb1
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbp, qword [rsp + 0x2f0]
test rdi, rdi
je 0x140012cc7
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x140012cd5
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movzx eax, byte [0x140066130]
test al, al
sete al
add rsp, 0x2c8
pop rdi
pop rbx
ret
xor edx, edx
mov rax, rsi
inc rax
cmp word [rbx + rax*2], dx
jne 0x140012cf0
sub eax, r15d
test eax, eax
jle 0x140012d34
lea rax, [r15*2 + 2]
mov rcx, r8
sub rax, r8
lea r8, [rax + rbx]
movzx eax, word [r8 + rcx]
inc edx
mov word [rcx], ax
lea rcx, [rcx + 2]
mov rax, rsi
inc rax
cmp word [rbx + rax*2], r12w
jne 0x140012d23
sub eax, r15d
cmp edx, eax
jl 0x140012d12
lea rcx, [0x140068938]
call fcn.140008330
mov r13, rax
test rax, rax
je 0x140012bfd
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x58], rax
mov rbx, rax
test rax, rax
je 0x140013009
movzx ecx, byte [0x1400661b0]
test cl, cl
je 0x140012d96
lea r8, [0x140068950]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
lea r9, [rsp + 0x2f8]
mov dword [rsp + 0x2f8], SafeArrayCopy
lea r8, [rsp + 0x80]
mov edx, 0x26
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
mov qword [rsp + 0x38], 1
mov r8d, 0x50
mov dword [rsp + 0x30], r15d
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140012ffc
movzx ecx, byte [0x1400661b0]
test cl, cl
je 0x140012e20
lea r8, [0x140068960]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
lea rcx, [0x140068970]
call fcn.140008330
mov r14, rax
test rax, rax
je 0x140012fff
mov r8, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov dword [rsp + 0x30], r15d
mov rdx, r14
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rsp + 0x50], rax
mov rbp, rax
test rax, rax
je 0x14001303a
movzx ecx, byte [0x1400661b0]
test cl, cl
je 0x140012e96
lea r8, [0x140068978]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
mov rbp, qword [rsp + 0x2e8]
mov rbx, rsi
inc rbx
cmp byte [rbx + rbp], r12b
jne 0x140012ea1
lea rcx, [0x140068988]
call fcn.140008330
mov rdi, rax
test rax, rax
je 0x140013021
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x140012ec5
mov r9, rbp
mov dword [rsp + 0x20], ebx
mov rbp, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WININET.dll_HttpSendRequestW]
mov r8, rsi
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], r12w
jne 0x140012ef0
add r8, r8
xor edx, edx
mov rcx, rdi
call fcn.14002ec20
mov rcx, rdi
call fcn.14002fc28
mov ebx, r15d
mov dword [rsp + 0x2e0], r15d
nop word [rax + rax]
lea r9, [rsp + 0x2e0]
mov r8d, 0x200
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x140012f8c
mov edx, dword [rsp + 0x2e0]
mov rcx, r12
add edx, ebx
call fcn.140033818
mov r12, rax
mov r8d, r15d
mov eax, dword [rsp + 0x2e0]
test eax, eax
je 0x140012f88
mov edx, r8d
lea ecx, [r8 + rbx]
inc r8d
movzx eax, byte [rsp + rdx + 0xa0]
mov byte [rcx + r12], al
mov eax, dword [rsp + 0x2e0]
cmp r8d, eax
jb 0x140012f66
add ebx, eax
jmp 0x140012f93
mov eax, dword [rsp + 0x2e0]
cmp eax, 0x200
jae 0x140012f20
cmp ebx, 0x2000
jbe 0x140012fe8
cmp byte [r12], 0x4d
jne 0x140012fe8
cmp byte [r12 + 1], 0x5a
jne 0x140012fe8
movzx eax, byte [0x1400661b0]
test al, al
je 0x140012fd1
lea r8, [0x140068728]
xor ecx, ecx
lea rdx, [0x140067028]
call fcn.14000a620
mov byte [0x140066130], r15b
mov eax, ebx
mov qword [0x140066188], r12
mov qword [0x140066190], rax
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
jmp 0x140012c0e
mov r14, r12
mov r15, qword [rsp + 0x40]
jmp 0x140012c0b
mov r15, qword [rsp + 0x40]
mov r14, r12
jmp 0x140012c08
mov r14, r12
mov r15, rax
jmp 0x140012c05
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
jmp 0x140012c0e
mov r15, qword [rsp + 0x40]
jmp 0x140012c0e
xor al, al
add rsp, 0x2c8
pop rdi
pop rbx
ret