Function at 0x4088f0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b131
mov eax, dword fs:[0]
push eax
mov eax, 0x2494
call fcn.0043da20
mov eax, dword [0x45e274]
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
lea eax, [ebp - 0x247c]
mov esi, ecx
mov edi, edx
call fcn.00409d00
mov ecx, 2
lea eax, [ebp - 0x247c]
call fcn.00409d60
lea eax, [ebp - 0x247c]
call fcn.00409d00
lea eax, [ebp - 0x247c]
push eax
mov ecx, esi
call fcn.004096c0
xor ebx, ebx
cmp eax, ebx
je 0x408ce7
push edi
lea ecx, [ebp - 0x2490]
call fcn.00402c30
push ebx
push ebx
push ebx
push 1
push str.StatReporter
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x248c], esi
cmp esi, ebx
je 0x408c8b
mov ecx, dword [ebp - 0x30]
push ebx
push ecx
lea edx, [ebp - 0x243a]
push edx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x24a0], edi
cmp edi, ebx
je 0x408c4f
xor esi, esi
cmp dword [ebp - 0x2c], 3
jne 0x4089c3
mov esi, 0x800000
lea eax, [ebp - 0x2034]
push eax
lea ecx, [ebp - 0x2488]
call fcn.00402c30
lea eax, [ebp - 0x1032]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4089e2
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x408a06
lea edx, [ebp - 0x1032]
lea eax, [ebp - 0x2488]
call fcn.00407690
mov ecx, dword [ebp - 0x2488]
push esi
push ebx
push ebx
push ebx
push ecx
push str.POST
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x408be0
mov ecx, dword [ebp - 0x2490]
mov eax, dword [ecx - 0xc]
push ebx
lea eax, [eax + eax + 2]
push eax
push eax
push ecx
push 0xffffffffffffffff
push str.Content_Type:_text_plain__charsetutf_16_r_n
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x408ba4
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x408ba4
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
mov dword [ebp - 0x2484], ebx
call eax
add eax, 0x10
mov dword [ebp - 0x2480], eax
push ebx
lea ecx, [ebp - 0x2484]
push ecx
push ebx
push ebx
push 0x13
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call edi
cmp eax, ebx
jne 0x408b8a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x408b5b
mov eax, dword [ebp - 0x2484]
push 0
lea edx, [ebp - 0x2484]
push edx
shr eax, 1
push eax
lea ecx, [ebp - 0x2480]
call fcn.00403620
push eax
push 0
push 0x13
push esi
call edi
test eax, eax
je 0x408b48
mov ecx, dword [ebp - 0x2484]
shr ecx, 1
push ecx
lea ecx, [ebp - 0x2480]
call fcn.00402d50
lea eax, [ebp - 0x2480]
call fcn.00408d10
test al, al
je 0x408b8a
push str.server_status_code_int_200
push 3
push 3
push 0x123
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x10
lea ecx, [ebp - 0x2480]
call fcn.00403740
mov edi, dword [ebp - 0x24a0]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408c13
call ebx
push eax
push str.failed_to_get_server_status_code__err___d
push 3
push 3
push 0x129
jmp 0x408b6c
call ebx
push eax
push str.failed_to_get_header_size__err___d
push 3
push 3
push 0x130
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x14
lea ecx, [ebp - 0x2480]
call fcn.00403740
mov edi, dword [ebp - 0x24a0]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_send_request_to_server__err___d
push 3
push 3
push 0x137
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x14
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_open_request__err___d
push 3
push 3
push 0x140
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x14
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x248c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_connect_to_http_session__err___d
push 3
push 3
push 0x14a
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x14
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_open_http_session__err___d
push 3
push 3
push 0x153
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d570
push eax
call fcn.0042d790
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2490]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0042f0df
mov esp, ebp
pop ebp
ret