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

Disassembly:
push 0x8c4
mov eax, 0x5621bf
call fcn.00531cbc
mov edi, ecx
sub esp, 0x18
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x838], esp
push str.refererid
call fcn.00402387
lea eax, [ebp - 0x8b8]
mov byte [ebp - 4], 1
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
pop ecx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0040b4e7
mov esi, eax
lea ecx, [ebp - 0x8d0]
mov byte [ebp - 4], 2
call fcn.0040d793
push eax
mov edx, str.Version
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x888]
call fcn.0040636e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x870]
mov edx, eax
mov dword [esp], str.Refid
call fcn.004046e2
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x830]
call fcn.0040639e
pop ecx
xor esi, esi
lea ecx, [ebp - 0x870]
push ebx
inc esi
push esi
call fcn.004034f0
push ebx
push esi
lea ecx, [ebp - 0x888]
call fcn.004034f0
push ebx
push esi
lea ecx, [ebp - 0x8d0]
call fcn.004034f0
push ebx
push esi
lea ecx, [ebp - 0x8b8]
mov byte [ebp - 4], 0xa
call fcn.004034f0
cmp dword [ebp + 0x18], ebx
je 0x4058ae
lea eax, [ebp + 8]
mov edx, 0x5a786c
push eax
lea ecx, [ebp - 0x858]
call fcn.004063ea
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 0xb
call fcn.00404640
push ebx
push esi
lea ecx, [ebp - 0x858]
mov byte [ebp - 4], 0xa
call fcn.004034f0
lea edx, [ebp - 0x830]
lea ecx, [ebp - 0x858]
call fcn.0040c342
push eax
lea ecx, [ebp - 0x830]
call fcn.0040454a
push ebx
push esi
lea ecx, [ebp - 0x858]
call fcn.004034f0
push 0x800
lea eax, [ebp - 0x814]
push ebx
push eax
call fcn.00532330
add esp, 0xc
lea eax, [ebp - 0x830]
cmp dword [ebp - 0x81c], 8
cmovae eax, dword [ebp - 0x830]
push eax
push edi
push 0x8000
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push str.refererid
call fcn.00402387
lea eax, [ebp - 0x8a0]
mov byte [ebp - 4], 0xc
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0040b4e7
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x405948
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push 0x5a7870
call fcn.00402387
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 0xe
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040b4e7
cmp dword [eax + 0x14], 8
jb 0x405985
mov eax, dword [eax]
push eax
push str.6ae76ba4_7119_45c8_94ed_52f23abece69
push str.external__s_json_RaiseObjectEventLiteMethod_AppInstanceId_sRefererId_sEventType_dEventCode_dProperties_s
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0053012d
add esp, 0x24
lea ecx, [ebp - 0x858]
push ebx
push esi
call fcn.004034f0
push ebx
push esi
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 0xa
call fcn.004034f0
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 - 0x834], ebx
mov dword [ebp - 0x818], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x838], eax
test eax, eax
jne 0x4059f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405b13
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 - 0x83c], ebx
test ebx, ebx
jne 0x405a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405b05
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x814]
push eax
push 0x5a77c0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x405a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405afe
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 0x405a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405af7
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x405a5e
and dword [ebp - 0x834], esi
lea eax, [ebp - 0x834]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x405ae1
mov eax, dword [ebp - 0x834]
inc eax
push eax
call fcn.00418fad
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405aeb
mov ecx, dword [ebp - 0x834]
inc ecx
push ecx
push 0
push ebx
call fcn.00532330
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x834]
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x405ae1
push ebx
call fcn.00418fa8
pop ecx
cmp dword [ebp - 0x834], esi
ja 0x405a78
jmp 0x405af1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x405af1
and dword [ebp - 0x834], esi
mov ebx, dword [ebp - 0x83c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x838]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x83c], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
push str.SendLogEvent
call fcn.00402387
xor dl, dl
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.0040516a
add esp, 0x48
lea ecx, [ebp - 0x830]
push ebx
push 1
call fcn.004034f0
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004034f0
test esi, esi
sete al
call fcn.00531c6b
ret