Function at 0x410800
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 0x46cc41
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24bc
call fcn.00461c20
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x24b8], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x24d0]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0
je 0x410bd4
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24d8], 0
push 0x10
push str.counterNamesCsv
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.004099a0
mov byte [esp + 0x24d8], 1
mov eax, dword [ebx]
xor cl, cl
mov esi, dword [eax]
cmp esi, eax
je 0x41094f
test cl, cl
je 0x4108c4
push 1
push 0x47f57c
lea ecx, [esp + 0x2c]
call fcn.00409870
lea edx, [esi + 0x10]
lea ecx, [esp + 0x3c]
call fcn.0042f811
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24e4], 2
call fcn.00409770
mov byte [esp + 0x24d8], 1
cmp dword [esp + 0x50], 0x10
jb 0x410901
push dword [esp + 0x3c]
call fcn.0044f82f
add esp, 4
cmp byte [esi + 0xd], 0
mov cl, 1
jne 0x410947
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x41092c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x410947
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x410920
jmp 0x410947
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x410945
cmp esi, dword [eax + 8]
jne 0x410945
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x410935
mov esi, eax
cmp esi, dword [ebx]
jne 0x4108b0
mov eax, dword [ebx]
mov ecx, ebx
push dword [eax + 4]
call fcn.00410da0
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
call fcn.00410550
push 4
push dword [0x47f488]
mov eax, 0x50
mov word [esp + 0x24a8], ax
lea eax, [esp + 0x5c]
push 0x21
push eax
mov dword [esp + 0x24b4], 2
mov dword [esp + 0x24b8], 4
call fcn.004508ba
push eax
call fcn.0040fbb0
mov edx, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0x3c]
call fcn.0042f884
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x4109d0
mov esi, dword [esi]
lea ecx, [esp + 0x54]
call fcn.00410550
push esi
lea ecx, [esp + 0x58]
call fcn.0040ffd0
cmp dword [esp + 0x50], 8
jb 0x4109f6
push dword [esp + 0x3c]
call fcn.0044f82f
add esp, 4
cmp dword [esp + 0x24a4], 3
push 0
push 0
push 0
push 0
push 0x47f580
sete bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x410b68
push 0
push 0
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 esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x410b57
lea ecx, [esp + 0x49c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a64
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x4a0]
push eax
lea ecx, [esp + 0x20]
call fcn.004110a0
lea ecx, [esp + 0x149e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x14a2]
push eax
lea ecx, [esp + 0x20]
call fcn.00410fd0
mov edi, dword [esp + 0x18]
push 0
xor eax, eax
mov ecx, 0x800000
test bl, bl
cmovne eax, ecx
push eax
push 0
push 0x47f3d0
push str.HTTP_1.0
push edi
push 0x47f5b4
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
test ebx, ebx
je 0x410b5b
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x24]
push eax
push 2
push ebx
mov dword [esp + 0x30], 0x1388
call esi
push 4
lea eax, [esp + 0x24]
push eax
push 6
push ebx
call esi
push 4
lea eax, [esp + 0x24]
push eax
push 5
push ebx
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 ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [esp + 0x14]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x20]
call eax
jmp 0x410b70
mov ebx, dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
call eax
jmp 0x410b70
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x410b7b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x410b87
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call eax
cmp dword [esp + 0x38], 0x10
jb 0x410b9a
push dword [esp + 0x24]
call fcn.0044f82f
add esp, 4
add edi, 0xfffffff0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x24d8], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410bd4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.0044f834
mov esp, ebp
pop ebp
ret 4