Function at 0x40bff0
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 0x46a821
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24d4
call fcn.00460740
mov eax, dword [0x493350]
xor eax, esp
mov dword [esp + 0x24d0], eax
push ebx
push esi
push edi
mov eax, dword [0x493350]
xor eax, esp
push eax
lea eax, [esp + 0x24e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x1c]
xor esi, esi
cmp eax, esi
je 0x40c3fa
mov edx, dword [0x49cb64]
mov eax, dword [edx + 0xc]
mov ecx, 0x49cb64
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24f0], esi
push 0x10
push str.counterNamesCsv
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], esi
mov byte [esp + 0x5c], 0
call fcn.00407d10
mov byte [esp + 0x24f0], 1
mov eax, dword [ebx + 0x18]
mov esi, dword [eax]
mov edi, dword [ebx]
mov byte [esp + 0x17], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov dword [esp + 0x4c], ecx
test edi, edi
je 0x40c0b7
cmp edi, eax
je 0x40c0bc
call fcn.0044d2b8
cmp esi, dword [esp + 0x4c]
je 0x40c14e
cmp byte [esp + 0x17], 0
je 0x40c0dd
push 1
push 0x475d78
lea eax, [esp + 0x58]
call fcn.00407c00
test edi, edi
jne 0x40c14a
call fcn.0044d2b8
cmp esi, dword [edi + 0x18]
jne 0x40c0f0
call fcn.0044d2b8
lea ecx, [esi + 0xc]
lea edi, [esp + 0x2c]
call fcn.004316b9
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov byte [esp + 0x24f8], 2
call fcn.00407b10
mov byte [esp + 0x24f0], 1
cmp dword [esp + 0x44], 0x10
jb 0x40c12f
mov edx, dword [esp + 0x30]
push edx
call fcn.0044cce2
add esp, 4
lea esi, [esp + 0x24]
mov byte [esp + 0x17], 1
call fcn.0040d320
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x40c0a6
mov edi, dword [edi]
jmp 0x40c0e6
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
call fcn.0040c760
mov eax, dword [ebx + 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x18]
xor esi, esi
mov dword [ebx + 0x1c], esi
mov dword [eax], eax
mov ebx, dword [ebx + 0x18]
lea eax, [esp + 0x6c]
mov dword [ebx + 8], ebx
call fcn.0040bcf0
mov eax, dword [0x475ce8]
push 4
push eax
lea ecx, [esp + 0x74]
mov edx, 0x50
push 0x21
push ecx
mov dword [esp + 0x24cc], 2
mov dword [esp + 0x24d0], 4
mov word [esp + 0x24c8], dx
call fcn.0044db77
push eax
call fcn.0040b450
mov ecx, dword [esp + 0x2c]
add esp, 0x14
lea edi, [esp + 0x2c]
call fcn.00431734
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x40c1d7
mov edi, dword [eax + 4]
jmp 0x40c1da
lea edi, [eax + 4]
lea eax, [esp + 0x6c]
call fcn.0040bcf0
mov ecx, edi
lea edx, [esp + 0x6c]
call fcn.0040b830
cmp dword [esp + 0x44], ebx
jb 0x40c201
mov edx, dword [esp + 0x30]
push edx
call fcn.0044cce2
add esp, 4
push esi
push esi
push esi
xor eax, eax
cmp dword [esp + 0x24c8], 3
push esi
push 0x475d7c
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], esi
mov word [esp + 0x44], ax
sete byte [esp + 0x2b]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, esi
je 0x40c38a
mov eax, dword [esp + 0x24b8]
push esi
push esi
push 3
lea ecx, [esp + 0x3be]
push ecx
lea edx, [esp + 0x2c0]
push edx
push eax
lea ecx, [esp + 0xc6]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
cmp edi, esi
je 0x40c37b
lea eax, [esp + 0x4b4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40c280
sub eax, edx
sar eax, 1
lea edx, [esp + 0x4b4]
mov ebx, eax
push edx
lea eax, [esp + 0x20]
call fcn.0040cdf0
lea eax, [esp + 0x14b6]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c2b0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14ba]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040cd20
movzx edx, byte [esp + 0x17]
mov eax, dword [esp + 0x1c]
push 0
neg edx
sbb edx, edx
and edx, 0x800000
push edx
push 0
push 0x475c54
push str.HTTP_1.0
push eax
push 0x475db0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
je 0x40c36c
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x24]
push ecx
push 2
push esi
mov dword [esp + 0x30], 0x1388
call ebx
push 4
lea edx, [esp + 0x24]
push edx
push 6
push esi
call ebx
push 4
lea eax, [esp + 0x24]
push eax
push 5
push esi
call ebx
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x40c35b
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x64]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov ebx, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
jmp 0x40c398
mov esi, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
jmp 0x40c398
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x40c39f
push edi
call ebx
test esi, esi
je 0x40c3a6
push esi
call ebx
cmp dword [esp + 0x68], 0x10
jb 0x40c3ba
mov edx, dword [esp + 0x54]
push edx
call fcn.0044cce2
add esp, 4
mov dword [esp + 0x24f0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0044cced
mov esp, ebp
pop ebp
ret 4