Function at 0x40e5b3
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 0x46667a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24bc
call fcn.0045b5d0
mov eax, dword [0x4947b8]
xor eax, esp
mov dword [esp + 0x24b8], eax
push ebx
push esi
push edi
mov eax, dword [0x4947b8]
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 0x40e854
push section..data
lea ecx, [esp + 0x1c]
call fcn.0040e9c0
and dword [esp + 0x24d8], 0
push str.counterNamesCsv
lea ecx, [esp + 0x28]
call fcn.00407d9b
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 0x40e6a7
test bl, bl
je 0x40e661
push 0x478204
call fcn.0040111e
pop ecx
push eax
push 0x478204
lea ecx, [esp + 0x2c]
call fcn.00409da8
lea edx, [esi + 0x10]
lea ecx, [esp + 0x3c]
call fcn.0042974d
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24e4], 2
call fcn.00409d02
lea ecx, [esp + 0x3c]
mov byte [esp + 0x24d8], 1
call fcn.00407e25
lea ecx, [esp + 0x20]
mov bl, 1
call fcn.0040a6ef
mov esi, dword [esp + 0x20]
cmp esi, dword [edi]
jne 0x40e643
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.0040ea06
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.0040dca2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.004297c4
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40e6e6
mov esi, dword [esi]
lea ecx, [esp + 0x54]
call fcn.0040e427
push esi
lea ecx, [esp + 0x58]
call fcn.0040debb
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.004095c3
mov esi, dword [esp + 0x24a4]
push ebx
push ebx
push ebx
push ebx
push 0x478208
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40e824
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 0x40e814
lea eax, [esp + 0x49c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e87f
lea eax, [esp + 0x149e]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e8ba
push 0
xor eax, eax
mov ecx, 0x800000
cmp esi, 3
cmove eax, ecx
push eax
push 0
push 0x477da8
push str.HTTP_1.0
push dword [esp + 0x2c]
push 0x47823c
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x40e818
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 0x40e818
mov edi, dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40e82c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
test ebx, ebx
je 0x40e837
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x40e842
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x24]
call fcn.00407e25
lea ecx, [esp + 0x18]
call fcn.0040e9e9
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.004492e4
mov esp, ebp
pop ebp
ret 4