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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x486350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x6c], eax
cmp dword [ebx + 0x1c], 0
push esi
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x74], esi
jne 0x40cfa4
push 0
push 0
push 0
push 1
push str.UpdateError
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
jne 0x40cfa4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004461e5
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x20], 0
push edi
lea edi, [ebx + 0x20]
mov dword [ebp - 0x78], edi
jne 0x40cff7
cmp dword [ebx + 0x58], 8
lea ecx, [ebx + 0x44]
jb 0x40cfbc
mov ecx, dword [ecx]
movzx eax, word [ebx + 0x18]
push 1
push 0
push 3
push 0
push 0
push eax
push ecx
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
test eax, eax
jne 0x40cff7
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004461e5
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x24], 0
lea eax, [ebx + 0x24]
mov dword [ebp - 0x70], eax
jne 0x40d068
cmp dword [ebx + 0x40], 8
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x80], 0x47b460
mov dword [ebp - 0x7c], 0
jb 0x40d01c
mov eax, dword [eax]
push 1
push 0x4000000
lea ecx, [ebp - 0x80]
push ecx
push 0
push str.HTTP_1.0
push eax
push str.POST
push dword [edi]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
test eax, eax
jne 0x40d068
push dword [esi]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004461e5
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x19
lea edi, [ebp - 0x68]
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
rep movsd dword es:[edi], dword [esi]
push 8
push str.remark
mov ecx, ebx
call fcn.00407760
mov edx, dword [ebp - 0x6c]
cmp word [edx], 0
jne 0x40d092
xor ecx, ecx
jmp 0x40d0a6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d097
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00407760
cmp dword [ebx + 0x14], 8
jb 0x40d0b7
mov ebx, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
lea esi, [eax + 1]
lea ecx, [esi + 1]
push ecx
call fcn.00446463
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
push esi
mov esi, eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40d100
sub edx, ecx
lea ecx, [ebp - 0x68]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d110
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push edx
sub ecx, edi
push esi
sar ecx, 1
push ecx
push eax
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, eax
test esi, esi
je 0x40d140
push esi
call fcn.0044625f
add esp, 4
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [eax]
call esi
mov eax, dword [ebp - 0x78]
push dword [eax]
call esi
push dword [ebx]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004461e5
mov esp, ebp
pop ebp
ret 4