Function at 0x180072900
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2230
call fcn.1800db900
sub rsp, rax
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x2220], rax
mov r14, r9
mov qword [rsp + 0x50], r9
mov r13, r8
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x128], r8
mov r15, qword [rsp + 0x2290]
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], rax
mov rax, qword [r9 + 0x20]
cmp rax, 8
jb 0x180072977
lea rdi, [r9 + 8]
mov rcx, qword [rdi]
jmp 0x18007297e
lea rdi, [r9 + 8]
mov rcx, rdi
mov rdx, qword [r9 + 0x18]
lea rbx, [rcx + rdx*2]
test rbx, rbx
je 0x1800729b5
cmp rax, 8
jb 0x180072996
mov rcx, qword [rdi]
jmp 0x180072999
mov rcx, rdi
cmp rcx, rbx
ja 0x1800729b5
cmp rax, 8
jb 0x1800729a9
mov rax, qword [rdi]
jmp 0x1800729ac
mov rax, rdi
lea rax, [rax + rdx*2]
cmp rbx, rax
jbe 0x1800729ba
call fcn.1800bf138
mov qword [rsp + 0x160], r14
mov qword [rsp + 0x168], rbx
mov rax, qword [r14 + 0x20]
cmp rax, 8
jb 0x1800729d9
mov rbx, qword [rdi]
jmp 0x1800729dc
mov rbx, rdi
test rbx, rbx
je 0x180072a0a
cmp rax, 8
jb 0x1800729ec
mov rcx, qword [rdi]
jmp 0x1800729ef
mov rcx, rdi
cmp rcx, rbx
ja 0x180072a0a
cmp rax, 8
jb 0x1800729fd
mov rdi, qword [rdi]
mov rax, qword [r14 + 0x18]
lea rcx, [rdi + rax*2]
cmp rbx, rcx
jbe 0x180072a0f
call fcn.1800bf138
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rbx
movaps xmm0, xmmword [rsp + 0x160]
movdqa xmmword [rsp + 0xe0], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0xa0], xmm1
lea r9, [rsp + 0xe0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x118]
mov rcx, r14
call fcn.180064ae0
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.1800737e0
mov edi, 0x4400000
lea eax, [r14 + 0x50]
cmp dword [rsp + 0x2298], r14d
je 0x180072aa6
mov edi, 0x84c00000
mov eax, 0x1bb
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x180072ef2
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180072ac3
mov rdx, qword [rbx]
jmp 0x180072ac6
mov rdx, r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, ax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180072ee7
movabs rcx, 0x2a002f002a
mov qword [rsp + 0x160], rcx
xor ecx, ecx
mov qword [rsp + 0x90], rcx
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x88], rcx
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x180072b33
mov r8, qword [rsi]
jmp 0x180072b36
mov r8, r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea r9, str.HTTP_1.0
lea rdx, [0x180109688]
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x180072ed3
cmp qword [r13 + 0x18], 0
je 0x180072bc7
mov r8, qword [r13 + 0x20]
cmp r8, 8
jb 0x180072b93
lea rdx, [r13 + 8]
mov rdi, qword [rdx]
jmp 0x180072b9a
lea rdx, [r13 + 8]
mov rdi, rdx
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
repne scasw ax, word [rdi]
not rcx
cmp r8, 8
jb 0x180072bb2
mov rdx, qword [rdx]
mov r9d, 0x20000000
lea r8d, [rcx - 1]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
jmp 0x180072bcb
or r12, 0xffffffffffffffff
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x180072c92
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rsi, rsi
je 0x180072c48
mov eax, r12d
lock xadd dword [rsi + 0x10], eax
add eax, 0xffffffff
jne 0x180072c43
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180072c26
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180072c34
call fcn.1800bd9a0
mov rcx, rdi
call fcn.1800bd964
mov rbx, qword [rsp + 0x40]
jmp 0x180072c48
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180072c83
lock xadd dword [rbx + 0x10], r12d
add r12d, 0xffffffff
jne 0x180072c83
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180072c6c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180072c7a
call fcn.1800bd9a0
mov rcx, rdi
call fcn.1800bd964
nop
mov rcx, r13
call fcn.180003dd0
xor eax, eax
jmp 0x180072fb9
mov dword [rsp + 0x74], RegisterTypeLib
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x170]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180072d87
lea rcx, [rsp + 0x170]
call fcn.1800bf9c8
mov dword [r15], eax
cmp eax, 0xc8
je 0x180072d87
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rsi, rsi
je 0x180072d3d
mov eax, r12d
lock xadd dword [rsi + 0x10], eax
add eax, 0xffffffff
jne 0x180072d38
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180072d1b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180072d29
call fcn.1800bd9a0
mov rcx, rdi
call fcn.1800bd964
mov rbx, qword [rsp + 0x40]
jmp 0x180072d3d
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180072d78
lock xadd dword [rbx + 0x10], r12d
add r12d, 0xffffffff
jne 0x180072d78
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180072d61
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180072d6f
call fcn.1800bd9a0
mov rcx, rdi
call fcn.1800bd964
nop
mov rcx, r13
call fcn.180003dd0
xor eax, eax
jmp 0x180072fb9
mov qword [rsp + 0x150], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x148], 0
mov byte [rsp + 0x138], 0
mov dword [rsp + 0x48], 0
nop
mov byte [rsp + 0x210], 0
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x211]
call fcn.1800c1250
lea r9, [rsp + 0x48]
mov r8d, 0x2000
lea rdx, [rsp + 0x210]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r11d, dword [rsp + 0x48]
mov byte [rsp + r11 + 0x210], 0
xor edi, edi
nop dword [rax]
cmp edi, r11d
jge 0x180072e2c
movsxd rax, edi
movzx r8d, byte [rsp + rax + 0x210]
mov edx, 1
lea rcx, [rsp + 0x130]
call fcn.180073de0
inc edi
mov r11d, dword [rsp + 0x48]
jmp 0x180072e00
test r11d, r11d
jne 0x180072db0
mov qword [rsp + 0xd0], reloc.OLEAUT32.dll_SafeArrayDestroy
xor eax, eax
mov qword [rsp + 0xc8], rax
mov byte [rsp + 0xb8], al
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xb0]
call fcn.180003b80
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xf0]
call fcn.180075820
nop
mov r9, r12
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.180003570
nop
cmp qword [rsp + 0x110], 8
jb 0x180072eaf
mov rcx, qword [rsp + 0xf8]
call fcn.1800bd964
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x150], 0x10
jb 0x180072ed7
mov rcx, qword [rsp + 0x138]
call fcn.1800bd964
jmp 0x180072ed7
or r12, 0xffffffffffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r14d, r14d
jmp 0x180072f00
or r12, 0xffffffffffffffff
mov rsi, qword [rsp + 0x60]
jmp 0x180072f00
or r12, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x180072f47
mov eax, r12d
lock xadd dword [rsi + 0x10], eax
add eax, 0xffffffff
jne 0x180072f42
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180072f25
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180072f33
call fcn.1800bd9a0
mov rcx, rdi
call fcn.1800bd964
mov rbx, qword [rsp + 0x40]
jmp 0x180072f47
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180072f82
lock xadd dword [rbx + 0x10], r12d
add r12d, 0xffffffff
jne 0x180072f82
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180072f6b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180072f79
call fcn.1800bd9a0
mov rcx, rdi
call fcn.1800bd964
nop
cmp qword [r13 + 0x20], 8
jb 0x180072f92
mov rcx, qword [r13 + 8]
call fcn.1800bd964
mov qword [r13 + 0x20], 7
mov qword [r13 + 0x18], r14
mov word [r13 + 8], r14w
mov eax, 1
jmp 0x180072fb9
mov rcx, qword [rsp + 0x2220]
xor rcx, rsp
call fcn.1800bd980
add rsp, 0x2230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret