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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b281
mov eax, dword fs:[0]
push eax
mov eax, 0x2494
call fcn.0043dba0
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.00409d20
mov ecx, 2
lea eax, [ebp - 0x247c]
call fcn.00409d80
lea eax, [ebp - 0x247c]
call fcn.00409d20
lea eax, [ebp - 0x247c]
push eax
mov ecx, esi
call fcn.004096e0
xor ebx, ebx
cmp eax, ebx
je 0x408d07
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 0x408cab
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 0x408c6f
xor esi, esi
cmp dword [ebp - 0x2c], 3
jne 0x4089e3
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 0x408a02
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x408a26
lea edx, [ebp - 0x1032]
lea eax, [ebp - 0x2488]
call fcn.004076b0
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 0x408c00
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 0x408bc4
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x408bc4
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 0x408baa
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x408b7b
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 0x408b68
mov ecx, dword [ebp - 0x2484]
shr ecx, 1
push ecx
lea ecx, [ebp - 0x2480]
call fcn.00402d50
lea eax, [ebp - 0x2480]
call fcn.00408d30
test al, al
je 0x408baa
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.0042d6f0
push eax
call fcn.0042d910
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 0x408c33
call ebx
push eax
push str.failed_to_get_server_status_code__err___d
push 3
push 3
push 0x129
jmp 0x408b8c
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.0042d6f0
push eax
call fcn.0042d910
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 0x408c33
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.0042d6f0
push eax
call fcn.0042d910
add esp, 0x14
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408c33
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.0042d6f0
push eax
call fcn.0042d910
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 0x408c60
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 0x408cde
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.0042d6f0
push eax
call fcn.0042d910
add esp, 0x14
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x408cde
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.0042d6f0
push eax
call fcn.0042d910
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 0x408d07
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.0042f25f
mov esp, ebp
pop ebp
ret