Function at 0x40e4c9
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467d48
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24bc
call fcn.0045cd80
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x24b8], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
xor eax, esp
push eax
lea eax, [esp + 0x24d0]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x40e76a
push section..data
lea ecx, [esp + 0x1c]
call fcn.0040e8d6
and dword [esp + 0x24d8], 0
push str.counterNamesCsv
lea ecx, [esp + 0x28]
call fcn.00407cc8
mov byte [esp + 0x24d8], 1
mov eax, dword [edi]
xor bl, bl
mov esi, dword [eax]
mov dword [esp + 0x20], esi
cmp esi, eax
je 0x40e5bd
test bl, bl
je 0x40e577
push 0x47a19c
call fcn.0040111e
pop ecx
push eax
push 0x47a19c
lea ecx, [esp + 0x2c]
call fcn.00409d07
lea edx, [esi + 0x10]
lea ecx, [esp + 0x3c]
call fcn.0042a731
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24e4], 2
call fcn.00409c61
lea ecx, [esp + 0x3c]
mov byte [esp + 0x24d8], 1
call fcn.00407d52
lea ecx, [esp + 0x20]
mov bl, 1
call fcn.0040a64e
mov esi, dword [esp + 0x20]
cmp esi, dword [edi]
jne 0x40e559
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.0040e91c
mov eax, dword [edi]
xor ebx, ebx
mov dword [eax + 4], eax
mov eax, dword [edi]
lea ecx, [esp + 0x54]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], ebx
call fcn.0040dbb8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.0042a7a8
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40e5fc
mov esi, dword [esi]
lea ecx, [esp + 0x54]
call fcn.0040e33d
push esi
lea ecx, [esp + 0x58]
call fcn.0040ddd1
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00409522
mov esi, dword [esp + 0x24a4]
push ebx
push ebx
push ebx
push ebx
push 0x47a1a0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e73a
push ebx
push ebx
push 3
lea ecx, [esp + 0x3a6]
push ecx
lea ecx, [esp + 0x2a8]
push ecx
push dword [esp + 0x24b4]
lea ecx, [esp + 0xae]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
je 0x40e72a
lea eax, [esp + 0x49c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e795
lea eax, [esp + 0x149e]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e7d0
push 0
xor eax, eax
mov ecx, 0x800000
cmp esi, 3
cmove eax, ecx
push eax
push 0
push 0x479d50
push str.HTTP_1.0
push dword [esp + 0x2c]
push 0x47a1d4
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x40e72e
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x20]
push eax
push 2
push edi
mov dword [esp + 0x2c], 0x1388
call esi
push 4
lea eax, [esp + 0x20]
push eax
push 6
push edi
call esi
push 4
lea eax, [esp + 0x20]
push eax
push 5
push edi
call esi
push dword [esp + 0x34]
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x40e72e
mov edi, dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40e742
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x40e74d
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x40e758
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x24]
call fcn.00407d52
lea ecx, [esp + 0x18]
call fcn.0040e8ff
mov ecx, dword [esp + 0x24d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24b8]
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret 4