Function at 0x40e72a
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 0x464942
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24d4
call fcn.0045b480
mov eax, dword [0x48e190]
xor eax, esp
mov dword [esp + 0x24d0], eax
push ebx
push esi
push edi
mov eax, dword [0x48e190]
xor eax, esp
push eax
lea eax, [esp + 0x24e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x40ea0c
mov eax, dword [0x497ae4]
mov ecx, 0x497ae4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
push str.counterNamesCsv
lea ecx, [esp + 0x54]
mov dword [esp + 0x24f4], ebx
call fcn.0040815e
mov byte [esp + 0x24f0], 1
mov eax, dword [edi + 0x18]
mov esi, dword [eax]
mov eax, dword [edi]
mov byte [esp + 0x17], bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
cmp dword [esp + 0x1c], ebx
je 0x40e7de
cmp dword [esp + 0x1c], eax
je 0x40e7e3
call fcn.00448161
cmp esi, dword [esp + 0x30]
je 0x40e866
cmp byte [esp + 0x17], bl
je 0x40e7fe
push 0x471288
lea eax, [esp + 0x54]
push eax
call fcn.004092c6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x40e862
call fcn.00448161
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x40e817
call fcn.00448161
lea edx, [esi + 0xc]
lea ecx, [esp + 0x34]
call fcn.0042c6ca
push 0xffffffffffffffff
push ebx
lea esi, [esp + 0x58]
mov byte [esp + 0x24f8], 2
call fcn.00409fe9
push ebx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x24f8], 1
call fcn.0040949a
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], 1
call fcn.0040f107
mov esi, dword [esp + 0x20]
jmp 0x40e7c9
mov eax, dword [eax]
jmp 0x40e80d
call fcn.0040ec24
lea esi, [esp + 0x6c]
call fcn.0040df3c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.0042c73d
cmp dword [eax + 0x18], 8
jb 0x40e88c
mov esi, dword [eax + 4]
jmp 0x40e88f
lea esi, [eax + 4]
lea eax, [esp + 0x6c]
call fcn.0040e58e
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.0040e1a2
push ebx
push 1
lea esi, [esp + 0x3c]
call fcn.00409732
mov esi, dword [esp + 0x24bc]
push ebx
push ebx
push ebx
push ebx
push 0x47128c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40e9d8
push ebx
push ebx
push 3
lea ecx, [esp + 0x3be]
push ecx
lea ecx, [esp + 0x2c0]
push ecx
push dword [esp + 0x24cc]
lea ecx, [esp + 0xc6]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x40e9c8
lea eax, [esp + 0x4b4]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040ea4c
lea eax, [esp + 0x14b6]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040ea83
cmp esi, 3
sete al
movzx eax, al
push ebx
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push ebx
push 0x470e6c
push str.HTTP_1.0
push dword [esp + 0x38]
push 0x4712c0
push dword [esp + 0x34]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
je 0x40e9cc
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 + 0x2c]
push eax
push 2
push edi
mov dword [esp + 0x38], 0x1388
call esi
push 4
lea eax, [esp + 0x2c]
push eax
push 6
push edi
call esi
push 4
lea eax, [esp + 0x2c]
push eax
push 5
push edi
call esi
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x40e9b8
lea eax, [esp + 0x54]
push dword [esp + 0x64]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x40e9cc
mov edi, dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40e9dc
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x18], ebx
je 0x40e9ec
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x40e9f7
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
push 1
lea ecx, [esp + 0x58]
call fcn.0040949a
lea eax, [esp + 0x24]
call fcn.0040ecd4
mov ecx, dword [esp + 0x24e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24d0]
xor ecx, esp
call fcn.00447c3d
mov esp, ebp
pop ebp
ret 4