Function at 0x571b46
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0x848
mov eax, 0x58b1c9
call fcn.00531c83
xor ebx, ebx
lea edx, [ebp + 8]
lea ecx, [ebp - 0x83c]
mov dword [ebp - 4], ebx
call fcn.0057890c
push eax
lea ecx, [ebp + 8]
call fcn.00402048
push ebx
push 1
lea ecx, [ebp - 0x83c]
call fcn.00403a16
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0054ae60
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push 0x329
push 0x8000
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x820], esp
push str.refererid
call fcn.004036c4
lea eax, [ebp - 0x854]
mov byte [ebp - 4], 1
push eax
xor ecx, ecx
call fcn.005786e9
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.005785fa
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x571be7
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x820], esp
push 0x5c3148
call fcn.004036c4
lea eax, [ebp - 0x83c]
mov byte [ebp - 4], 3
push eax
xor ecx, ecx
call fcn.005786e9
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.005785fa
cmp dword [eax + 0x14], 8
jb 0x571c22
mov eax, dword [eax]
push eax
push str.6ae76ba4_7119_45c8_94ed_52f23abece69
push str.external__s_json_RaiseObjectEventLiteMethod_AppInstanceId_sBagkey_sEventType_dEventCode_dProperties_s
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0040533a
add esp, 0x24
lea ecx, [ebp - 0x83c]
push ebx
push 1
call fcn.00403a16
push ebx
push 1
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], bl
call fcn.00403a16
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Trident_5.0___IM_CustomChannel_
mov esi, ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x814], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x820], eax
test eax, eax
jne 0x571c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x571db1
push ebx
push 0x50
push str.data.bd_pl.com
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x81c], ebx
test ebx, ebx
jne 0x571cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x571da3
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x810]
push eax
push 0x5c30a0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x571ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x571d9c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
je 0x571d09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x571d95
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x571cfc
and dword [ebp - 0x818], esi
lea eax, [ebp - 0x818]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x571d7f
mov eax, dword [ebp - 0x818]
inc eax
push eax
call fcn.0041559f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x571d89
mov ecx, dword [ebp - 0x818]
inc ecx
push ecx
push 0
push ebx
call fcn.0054ae60
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x818]
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x571d7f
push ebx
call fcn.004155a8
pop ecx
cmp dword [ebp - 0x818], esi
ja 0x571d16
jmp 0x571d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x571d8f
and dword [ebp - 0x818], esi
mov ebx, dword [ebp - 0x81c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x820]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x820], esp
push 0x5c2fd4
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x81c], esp
push 0x5c2d2e
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str.SendLogEvent
call fcn.004036c4
mov dl, bl
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.00571a9e
add esp, 0x48
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.00403a16
test esi, esi
sete al
call fcn.00531c2d
ret