Function at 0x140003590
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
sub rsp, 0xb8
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x80], 4
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005e40]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140003639
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
xor r9d, r9d
movzx r8d, word [0x140007008]
mov rdx, qword [str.157.20.182.103]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140003687
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._test801_
lea rdx, str.POST
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000370a
mov edx, 0x100000
mov rcx, qword [0x1400081a0]
call fcn.140002460
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
mov qword [rsp + 0x30], 0
mov eax, dword [0x1400080fc]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1400080fc]
mov dword [rsp + 0x20], eax
mov r9, qword [0x1400081a0]
xor r8d, r8d
lea rdx, str.Content_Type:_application_json
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x1400037a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
mov edx, 0x100000
mov rcx, qword [0x1400081a0]
call fcn.140002460
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
mov edx, 0x100000
mov rcx, qword [0x1400081a0]
call fcn.140002460
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, 1
je 0x14000380a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x94], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140003883
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
cmp dword [rsp + 0x70], 0xc8
je 0x1400038d1
mov dword [0x140007cb0], 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x84], 0
mov dword [rsp + 0x9c], 0
xor eax, eax
cmp eax, 1
je 0x140003a3a
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14000395d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
cmp dword [rsp + 0x40], 0
ja 0x140003969
jmp 0x140003a3a
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.140003b10
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x84]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1400039f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x40]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.140003b50
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
jmp 0x140003b00
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [0x1400081a8]
add rcx, rax
mov rax, rcx
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140002920
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
call fcn.140003b50
jmp 0x1400038ef
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x58], 0
je 0x140003aec
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [0x140007060]
lea r8, [0x140007040]
mov edx, dword [rsp + 0x58]
mov rcx, qword [0x1400081a8]
call fcn.140001140
mov edx, 0x100000
mov rcx, qword [0x1400081a8]
call fcn.140002460
mov eax, dword [rsp + 0x6c]
sub eax, 0x10
mov dword [0x140007cb4], eax
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [0x1400081a8]
call fcn.140002920
mov edx, 0x100000
mov rcx, qword [rsp + 0x88]
call fcn.140002460
lea rcx, [0x140008110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400081a8]
add rsp, 0xb8
ret