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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44af41
mov eax, dword fs:[0]
push eax
mov eax, 0x2494
call fcn.0043d810
mov eax, dword [0x45d274]
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.00409ce0
mov ecx, 2
lea eax, [ebp - 0x247c]
call fcn.00409d40
lea eax, [ebp - 0x247c]
call fcn.00409ce0
lea eax, [ebp - 0x247c]
push eax
mov ecx, esi
call fcn.004096a0
xor ebx, ebx
cmp eax, ebx
je 0x408cc7
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 0x408c6b
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 0x408c2f
xor esi, esi
cmp dword [ebp - 0x2c], 3
jne 0x4089a3
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 0x4089c2
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x4089e6
lea edx, [ebp - 0x1032]
lea eax, [ebp - 0x2488]
call fcn.00407610
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 0x408bc0
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 0x408b84
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x408b84
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
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 0x408b6a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x408b3b
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 0x408b28
mov ecx, dword [ebp - 0x2484]
shr ecx, 1
push ecx
lea ecx, [ebp - 0x2480]
call fcn.00402d50
lea eax, [ebp - 0x2480]
call fcn.00408cf0
test al, al
je 0x408b6a
push str.server_status_code_int_200
push 3
push 3
push 0x122
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d360
push eax
call fcn.0042d580
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 0x408bf3
call ebx
push eax
push str.failed_to_get_server_status_code__err___d
push 3
push 3
push 0x128
jmp 0x408b4c
call ebx
push eax
push str.failed_to_get_header_size__err___d
push 3
push 3
push 0x12f
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d360
push eax
call fcn.0042d580
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 0x408bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_send_request_to_server__err___d
push 3
push 3
push 0x136
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x14
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_open_request__err___d
push 3
push 3
push 0x13f
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d360
push eax
call fcn.0042d580
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 0x408c20
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 0x408c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_connect_to_http_session__err___d
push 3
push 3
push 0x149
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x14
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_open_http_session__err___d
push 3
push 3
push 0x152
push str.CStatReporter::ReportEventSync
push str.StatReporter.cpp
lea ecx, [ebp - 0x249c]
call fcn.0042d360
push eax
call fcn.0042d580
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 0x408cc7
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.0042eecf
mov esp, ebp
pop ebp
ret