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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407ba0
push eax
lea ecx, [esp + 0x1c]
call fcn.00405110
mov dword [esp + 0x38], 0
push dword [esp + 0x18]
push str.URL:__ls
push 0x7c
push str.Stats::Send
call fcn.004110a0
add esp, 0x10
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
push 0
push 0
push 0
push 0
push str.browser_downloader_1.0.1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4087a5
push 0
push 0x50
push dword [esi]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x24], eax
test eax, eax
je 0x408792
push 0
push 0
push 0
push 0
push dword [esp + 0x28]
push 0x44b9c8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x408660
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x408744
jmp 0x40867a
call ebx
push eax
push str.hRequest_error__d_has_occurred._n
push 0xb0
push str.Stats::Send
call fcn.004110a0
add esp, 0x10
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x408744
nop
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4086b8
call ebx
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.00423529
add esp, 8
mov eax, dword [esp + 0x14]
inc eax
push eax
call fcn.00422d90
mov esi, eax
add esp, 4
test esi, esi
je 0x40872f
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
push 0
push esi
call fcn.004260c0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x408701
call ebx
push eax
push str.Error__u_in_WinHttpReadData._n
push 0xd0
jmp 0x40870c
push esi
push 0x44ba70
push 0xd4
push str.Stats::Send
call fcn.004110a0
add esp, 0x10
push esi
call fcn.00423397
add esp, 4
cmp dword [esp + 0x14], 0
ja 0x408690
jmp 0x408744
push str.Out_of_memory_n
call fcn.00423529
add esp, 4
mov dword [esp + 0x14], 0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x408751
push edi
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x28]
call esi
cmp dword [esp + 0x1c], 0
jne 0x408773
call ebx
push eax
push str.bResults_error__d_has_occurred._n
push 0xe5
jmp 0x4087b6
push dword [esp + 0x18]
push str.Stat_send_SUCCESS:__ls
push 0xea
push str.Stats::Send
call fcn.004110a0
add esp, 0x10
mov bl, 1
jmp 0x4087c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.hConnect_error__d_has_occurred._n
push 0xa2
jmp 0x4087b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.hSession_error__d_has_occurred._n
push 0x93
push str.Stats::Send
call fcn.004110a0
add esp, 0x10
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4087eb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8