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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4a0148
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a0503
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a04d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x4a0514
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a01a8
call fcn.00404150
jmp 0x4a04db
push 0
push 0
push 3
push 0x4a0520
push 0x4a0520
push 0x50
mov eax, dword [0x51688c]
mov eax, dword [eax]
call fcn.00404c10
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a01e3
call fcn.00404150
jmp 0x4a04db
push 0
push 0
push 0
push 0x4a052c
mov eax, dword [0x51688c]
push dword [eax]
push 0x4a0540
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404ad0
mov eax, dword [ebp - 0x20]
call fcn.00404c10
push eax
push 0
push 0x4a0558
push 0x4a0568
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a0238
call fcn.00404150
jmp 0x4a04db
mov ecx, dword [0x51687c]
mov ecx, dword [ecx]
lea eax, [ebp - 0x24]
mov edx, 0x4a0578
call fcn.00404a5c
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, 0x4a0588
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x60]
test ebx, ebx
jne 0x4a02ad
push 0x4a05ac
mov eax, dword [0x5168ec]
mov eax, dword [eax]
push dword [eax + 0x3c]
mov eax, dword [0x5169a4]
push dword [eax]
push 0x4a05c4
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404ad0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x4a02e1
push 0x4a05ac
push ebx
push 0x4a05d4
mov eax, dword [0x5169a4]
push dword [eax]
push 0x4a05c4
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00404ad0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea eax, [ebp - 0x18]
mov edx, 0x4a05e0
call fcn.004047e8
push 0x40000000
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404c10
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
lea eax, [ebp - 0x18]
mov edx, 0x4a05e0
call fcn.004047e8
push 0x40000000
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404c10
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x4a060c
mov eax, dword [0x51688c]
push dword [eax]
push 0x4a0628
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ad0
lea eax, [ebp - 0x18]
mov edx, 0x4a0644
call fcn.00404a18
push 0x40000000
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404c10
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov dl, 1
mov eax, dword [0x419a34]
call fcn.00403894
mov esi, eax
mov edx, 0x4a0650
mov eax, esi
call fcn.004883ac
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a0403
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x30], 0
je 0x4a03fd
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x18]
mov edx, 0x4a0644
call fcn.00404a18
push 0x40000000
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404c10
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
inc ebx
dec dword [ebp - 0x1c]
jne 0x4a03b2
mov eax, esi
call fcn.004038c4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0x4a0664
mov eax, dword [ebp - 0x14]
call fcn.00404a10
lea edx, [ebp - 0x34]
call fcn.00409a60
push dword [ebp - 0x34]
push 0x4a0644
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ad0
push 0x40000000
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404c10
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0x14]
call fcn.00404a10
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c10
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a04db
cmp dword [ebp - 0xc], 0
je 0x4a04b5
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x10], 0
je 0x4a04c4
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 8], 0
je 0x4a04d3
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a050a
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00404774
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404774
ret