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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434c38
mov eax, dword fs:[0]
push eax
mov eax, 0x6020
call fcn.0042c8e0
mov eax, dword [0x4484c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x6028], ecx
xor eax, eax
mov dword [ebp - 4], 3
push eax
push eax
push eax
push eax
push str.LogEvents
mov esi, eax
mov dword [ebp - 0x6014], eax
mov dword [ebp - 0x602c], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x601c], ebx
test ebx, ebx
jne 0x4077f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4079fe
push 0
push 0x50
push str.data.bd_pl.com
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x6020], eax
test eax, eax
jne 0x407818
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4079f7
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.0041bd90
push dword [ebp + 0xc]
lea eax, [ebp - 0x2010]
push dword [ebp + 8]
push str.product_serror_s
push eax
call fcn.0041a64a
and dword [ebp - 0x6024], esi
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x6010], ax
lea eax, [ebp - 0x600e]
push eax
call fcn.0041bd90
add esp, 0x20
lea eax, [ebp - 0x6024]
lea edx, [ebp - 0x6010]
lea ecx, [ebp - 0x2010]
push eax
call fcn.0040756e
add esp, 0xc
test eax, eax
je 0x4079eb
push 0x43f73c
lea ecx, [ebp - 0x6018]
call fcn.00402168
mov byte [ebp - 4], 4
lea edx, [ebp - 0x6010]
cmp dword [ebp + 0x24], 8
lea ecx, [ebp + 0x10]
push edx
push dword [ebp - 0x6028]
cmovae ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], 8
push edi
cmovae eax, dword [ebp + 0x28]
push str.00000000_0000_0000_0000_000000000000
push ecx
push eax
lea eax, [ebp - 0x6018]
push str.v1_log_df9e414d_88e5_4351_9a1d_0ff7c8544ae3_AppInstanceId_sBagkey_sTargetUid_sEventType_dEventCode_dProperties_s
push eax
call fcn.00405700
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x6018]
push 0x43f994
push dword [ebp - 0x6020]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x407922
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x6018]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004045c1
jmp 0x4079eb
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 0x407943
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4079d6
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4079d6
and dword [ebp - 0x6014], 0
lea eax, [ebp - 0x6014]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4079c8
mov eax, dword [ebp - 0x6014]
inc eax
push eax
call fcn.004185ed
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4079bf
mov ecx, dword [ebp - 0x6014]
inc ecx
push ecx
push 0
push ebx
call fcn.0041bd90
add esp, 0xc
lea eax, [ebp - 0x602c]
push eax
push dword [ebp - 0x6014]
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4079c8
push ebx
call fcn.00419a2f
cmp dword [ebp - 0x6014], 0
pop ecx
ja 0x407954
jmp 0x4079d0
and dword [ebp - 0x6014], 0
jmp 0x4079d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, dword [ebp - 0x601c]
mov ecx, dword [ebp - 0x6018]
lea ecx, [ecx - 0x10]
call fcn.004045c1
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x6020]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004045c1
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.0040276a
push 0
push 1
lea ecx, [ebp + 0x28]
call fcn.0040276a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419236
mov esp, ebp
pop ebp
ret