Function at 0x1800043e0
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
xor ebx, ebx
mov rbp, rcx
mov r14, r8
mov byte [rax + 8], bl
mov word [rax + 0x20], bx
lea eax, [rbx + 0x2f]
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x102
mov word [rsp + 0xa0], ax
mov edi, ebx
mov r15d, ebx
mov word [rsp + 0x44], bx
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x60], ebx
call fcn.180015710
lea r8d, [rbx + 0x30]
lea rcx, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x68], ebx
call fcn.180015710
mov r13b, byte [rbp + 0x1c0]
cmp r13b, 1
je 0x18000448d
cmp r13b, 2
jne 0x180004483
mov eax, dword [rbp + 0x180]
mov r12d, dword [rbp + 0x194]
cmp eax, r12d
cmovl r12d, eax
jmp 0x180004490
cmp r13b, 3
jne 0x18000491d
mov r12d, ebx
movzx esi, word [rbp + 0x160]
mov ebx, dword [rbp + 0x1c4]
mov dil, byte [rbp + 0x1c1]
sub si, word [rbp + 0x184]
inc ebx
call fcn.180002564
xor r11d, r11d
mov dword [rsp + 0x50], ebx
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x54], r11d
mov byte [rsp + 0x54], dil
mov word [rsp + 0x56], si
mov word [rsp + 0x58], r11w
lea rdi, [rsp + 0xa1]
lea esi, [r11 + 0xa]
mov byte [rsp + 0x55], r13b
mov word [rsp + 0x58], r12w
movzx r8d, byte [rbx]
lea rdx, str._02x
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
add rdi, 2
inc rbx
sub rsi, 1
jne 0x1800044ea
xor eax, eax
lea r8, [rsp + 0xa0]
lea rdx, str.POST
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x84800100
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
xor r14d, r14d
mov rsi, rax
cmp rax, r14
je 0x180004907
lea r13d, [r14 + 4]
lea r8, [rsp + 0x60]
lea edx, [r14 + 0x1f]
mov rcx, rax
mov r9d, r13d
mov dword [rsp + 0x60], 0x3180
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r8, [rsp + 0x48]
lea edx, [r14 + 2]
mov r9d, r13d
mov rcx, rsi
mov dword [rsp + 0x48], 0x7530
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea r8, [rsp + 0x48]
lea edx, [r14 + 6]
mov r9d, r13d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea r8, [rsp + 0x48]
lea edx, [r14 + 5]
mov r9d, r13d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [rsp + 0x68], gethostname
mov dword [rsp + 0x94], r12d
mov dword [rsp + 0x90], r14d
cmp dword [rbp + 0x14c], r14d
je 0x180004631
cmp byte [rbp + 0x10b], r14b
je 0x180004631
cmp byte [rbp + 0x12b], r14b
je 0x180004631
lea rcx, [rbp + 0x10b]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8, [rbp + 0x10b]
lea edx, [r14 + 0x2b]
mov r9d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea rcx, [rbp + 0x12b]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8, [rbp + 0x12b]
lea edx, [r14 + 0x2c]
mov r9d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpSendRequestExA]
cmp eax, r14d
je 0x180004907
cmp r12d, r14d
je 0x180004679
mov rdx, qword [rbp + 0x178]
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, r14d
je 0x180004907
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpEndRequestA]
cmp eax, r14d
jne 0x1800046b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x2f00
jne 0x18000490f
cmp r15d, 3
jge 0x18000490f
inc r15d
jmp 0x180004631
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x1f0]
mov edx, 0x20000013
mov rcx, rsi
mov dword [rsp + 0x64], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, r14d
je 0x180004907
movzx eax, byte [rsp + 0x1f0]
cmp eax, 0xc8
je 0x180004713
cmp eax, 0x197
je 0x1800046ff
mov edi, 0x2ee4
jmp 0x18000490f
mov dword [rbp + 0x14c], 1
mov edi, 0x2eee
jmp 0x18000490f
lea rax, [rsp + 0x44]
lea r9, [rbp + 0x1c1]
lea r8, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x208]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1f0]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180004968
mov edi, eax
cmp eax, r14d
jne 0x18000490f
cmp byte [rsp + 0x1f0], 2
je 0x180004791
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp + 0x198]
mov byte [rbp + 0x1c0], r13b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbp
call fcn.1800040e4
jmp 0x18000490f
movzx eax, word [rsp + 0x208]
mov dword [rbp + 0x190], r14d
mov dword [rbp + 0x194], eax
mov al, byte [rbp + 0x1c0]
cmp al, 1
jne 0x1800047e2
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbp + 0x1c0], 1
mov r11d, dword [rsp + 0x4c]
mov dword [rbp + 0x1c4], r11d
jne 0x180004874
mov byte [rbp + 0x1c0], 2
jmp 0x180004874
cmp al, 2
jne 0x180004853
mov eax, dword [rbp + 0x1c4]
mov r13d, dword [rsp + 0x4c]
add eax, 2
cmp eax, r13d
je 0x180004803
mov edi, recv
jmp 0x18000490f
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbp + 0x180]
mov rcx, qword [rbp + 0x178]
sub eax, r12d
movsxd rdx, r12d
mov dword [rbp + 0x1c4], r13d
movsxd r8, eax
add rdx, rcx
call fcn.180016360
sub dword [rbp + 0x180], r12d
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbp
call fcn.180003f8c
jmp 0x180004881
cmp al, 3
jne 0x180004881
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbp + 0x1c0], 3
jne 0x180004874
mov byte [rbp + 0x1c0], r13b
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r13, qword [rsp + 0x1f8]
mov r15d, 0x2000
jmp 0x1800048ee
cmp dword [rsp + 0x40], r14d
je 0x18000493a
cmp byte [rbp + 0x1c0], 2
jne 0x1800048ee
lea rcx, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movsxd rcx, dword [rbp + 0x184]
movsxd r8, dword [rsp + 0x40]
add rcx, qword [rbp + 0x168]
mov rdx, r13
call fcn.180016360
mov r11d, dword [rsp + 0x40]
lea rcx, [rbp + 0x198]
add dword [rbp + 0x184], r11d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbp
call fcn.180004028
lea r9, [rsp + 0x40]
mov r8d, r15d
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, r14d
jne 0x180004891
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rsi, r14
je 0x18000491d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp r12d, r14d
jne 0x18000490f
cmp r14w, word [rsp + 0x44]
jne 0x18000490f
mov ebx, r14d
cmp dword [rbp + 0x180], r14d
jne 0x18000490f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x18000494a
jmp 0x18000490f