Function at 0x180002120
Capabilities:
Check http status code
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x180065060]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
lea rax, [0x180059364]
mov qword [rbp - 0x49], rax
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Dice.Driver
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180002183
mov rdx, qword [rdi]
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, word [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea r9, str.HTTP_1.1
mov r8, qword [rsi]
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rsi, rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], r14b
jne 0x1800021e7
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov r8d, 0x2f
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1800025fd
mov dword [rbp - 0x55], r14d
mov dword [rbp - 0x51], 4
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x55]
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x18000229e
mov dword [rdi + 0x44], 2
lea rdx, [rbp - 0x39]
call fcn.180002680
lea rcx, [rdi + 0x48]
mov rdx, rax
call fcn.180004e00
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000235e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002359
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002657
jmp 0x180002359
mov r8d, dword [rbp - 0x55]
cmp r8d, 0xc8
je 0x18000237a
mov dword [rdi + 0x44], 3
lea r9, [rbp - 4]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1800022c0
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x21], 0xf
lea rax, [rbp - 4]
cmp r9, rax
je 0x180002316
lea r8, [rbp - 4]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x39]
call fcn.180004ef0
lea rcx, [rdi + 0x48]
lea rdx, [rbp - 0x39]
call fcn.180004e00
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000235e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002359
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002651
call fcn.18002aab0
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18002aa90
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1800023e1
lea rdx, [rbp - 0x39]
call fcn.180002680
lea rcx, [rdi + 0x48]
mov rdx, rax
call fcn.180004e00
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000235e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002359
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000265d
jmp 0x180002359
mov eax, dword [rbp - 0x59]
test eax, eax
jne 0x1800023f4
mov dword [rdi + 0x44], 4
jmp 0x18000235e
mov qword [rbp + 7], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], r14b
mov ecx, eax
call fcn.18002b10c
mov rbx, rax
lea r9, [rbp - 0x4d]
mov r8d, dword [rbp - 0x59]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180002564
mov eax, dword [rbp - 0x4d]
cmp eax, dword [rbp - 0x59]
jne 0x18000255b
mov r8d, eax
mov qword [rbp - 0x19], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.180004ef0
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
lea rcx, [rbp + 7]
call fcn.180005050
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1800024b5
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800024b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000266f
call fcn.18002aab0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000250a
mov rcx, rbx
call fcn.18002aab0
mov eax, dword [rbp - 0x59]
test eax, eax
jne 0x180002408
lea rcx, [rdi + 0x48]
lea rax, [rbp + 7]
cmp rcx, rax
je 0x180002503
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x17]
call fcn.180004ef0
mov bl, 1
jmp 0x1800025be
lea rdx, [rbp - 0x39]
call fcn.180002680
lea rcx, [rdi + 0x48]
mov rdx, rax
call fcn.180004e00
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1800025b4
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800025af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002663
jmp 0x1800025af
mov dword [rdi + 0x44], 1
jmp 0x1800025b4
lea rdx, [rbp - 0x39]
call fcn.180002680
lea rcx, [rdi + 0x48]
mov rdx, rax
call fcn.180004e00
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1800025b4
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800025af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002675
call fcn.18002aab0
mov rcx, rbx
call fcn.18002aab0
xor bl, bl
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1800025f5
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800025f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002651
call fcn.18002aab0
movzx eax, bl
jmp 0x180002360
lea rdx, [rbp - 0x39]
call fcn.180002680
lea rcx, [rdi + 0x48]
mov rdx, rax
call fcn.180004e00
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18000235e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002359
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002669
jmp 0x180002359
call fcn.1800322fc
int3
call fcn.1800322fc
int3
call fcn.1800322fc
nop
call fcn.1800322fc
nop
call fcn.1800322fc
nop
call fcn.1800322fc
int3
call fcn.1800322fc
int3