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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4384b0
mov eax, dword fs:[0]
push eax
mov eax, 0x24b8
call fcn.00437fe0
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24bc], ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
je 0x4026c1
lea ecx, [ebp - 0x24c0]
call fcn.004028e4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push str.counterNamesCsv
call fcn.00402815
mov byte [ebp - 4], 1
mov edi, dword [ebx]
mov esi, dword [edi]
cmp esi, edi
je 0x402513
lea edx, [esi + 0x10]
lea ecx, [ebp - 0x44]
call fcn.0040ee35
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4024ac
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402ae3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004027a6
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4024e6
mov eax, dword [esi + 4]
jmp 0x4024dc
cmp esi, dword [eax + 8]
jne 0x4024e2
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4024d2
mov esi, eax
jmp 0x4024fc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4024fc
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4024f0
mov edi, dword [ebx]
cmp esi, edi
je 0x402513
push 1
push 0x440090
lea ecx, [ebp - 0x2c]
call fcn.00402ae3
jmp 0x402493
push dword [edi + 4]
mov ecx, ebx
push ebx
call fcn.00402f0d
mov dword [edi + 4], edi
lea ecx, [ebp - 0x24b4]
mov dword [edi], edi
xor esi, esi
mov dword [edi + 8], edi
mov dword [ebx + 4], esi
call fcn.00401a11
mov edx, dword [ebp - 0x24bc]
lea ecx, [ebp - 0x44]
call fcn.0040eeb3
mov edx, eax
cmp dword [edx + 0x14], 7
jbe 0x40254e
mov edx, dword [edx]
lea ecx, [ebp - 0x24b4]
call fcn.004021c5
push edx
call fcn.00401bd5
lea ecx, [ebp - 0x44]
call fcn.00402ab8
cmp dword [ebp - 0x64], 3
push esi
push esi
push esi
push esi
push 0x440094
sete byte [ebp - 0x24b5]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x24bc], eax
test eax, eax
je 0x40268c
push esi
push esi
push 3
lea ecx, [ebp - 0x216e]
push ecx
lea ecx, [ebp - 0x2270]
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x2472]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
je 0x402678
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x24c0]
call fcn.004028a4
lea eax, [ebp - 0x106a]
push eax
lea ecx, [ebp - 0x24c0]
call fcn.00402869
movzx eax, byte [ebp - 0x24b5]
push esi
shl eax, 0x17
push eax
push esi
push 0x43ff90
push str.HTTP_1.0
push dword [ebp - 0x24c0]
push 0x4400c8
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x40267e
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]
lea eax, [ebp - 0x24c4]
push 4
push eax
push 2
push edi
mov dword [ebp - 0x24c4], 0x1388
call esi
push 4
lea eax, [ebp - 0x24c4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 0x24c4]
push eax
push 5
push edi
call esi
push dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
jmp 0x40267e
mov edi, dword [ebp - 0x24bc]
push dword [ebp - 0x24bc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402698
mov ebx, dword [ebp - 0x24bc]
mov edi, dword [ebp - 0x24bc]
test ebx, ebx
je 0x4026a3
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4026ae
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.004027a6
lea ecx, [ebp - 0x24c0]
call fcn.00402b3c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043587c
leave
ret 4