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

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x445064]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x120
mov eax, 0x437208
call fcn.00431e7a
mov ebx, ecx
mov dword [ebp - 0x24], ebx
add ebx, 0x14
xor edi, edi
mov dword [ebp - 0x10], ebx
cmp ebx, edi
jne 0x40a5af
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.0041887e
add ebp, 0x45c
leave
ret 4
lea eax, [ebx + 0x1c]
push eax
lea esi, [ebp]
call fcn.0040356b
lea eax, [ebx + 0x38]
push eax
lea esi, [ebp + 0x1c]
mov dword [ebp - 4], edi
call fcn.0040356b
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x40a5de
cmp dword [ebx + 0x4c], edi
jne 0x40a6a3
cmp dword [ebx + 0x68], edi
jne 0x40a5fb
push edi
push 1
lea esi, [ebp + 0x1c]
call fcn.0040200d
push edi
push 1
lea esi, [ebp]
call fcn.0040200d
jmp 0x40a588
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x240], ax
lea eax, [ebp + 0x242]
push edi
push eax
call fcn.0041c790
xor eax, eax
push esi
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push edi
push eax
call fcn.0041c790
add esp, 0x18
cmp dword [ebx + 0x6c], 8
jb 0x40a636
mov ebx, dword [ebx + 0x58]
jmp 0x40a639
add ebx, 0x58
lea edi, [ebp + 0x38]
lea esi, [ebp + 0x240]
call fcn.0040abac
test eax, eax
jne 0x40a65a
push eax
push 1
lea esi, [ebp + 0x1c]
call fcn.0040200d
push 0
jmp 0x40a5ef
lea eax, [ebp + 0x240]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40a663
sub eax, edx
sar eax, 1
lea ecx, [ebp + 0x240]
lea esi, [ebp]
call fcn.004021af
lea eax, [ebp + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40a685
sub eax, edx
sar eax, 1
lea ecx, [ebp + 0x38]
lea esi, [ebp + 0x1c]
call fcn.004021af
mov ebx, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebx + 0x18], 8
jb 0x40a6ae
mov eax, dword [ebx + 4]
jmp 0x40a6b1
lea eax, [ebx + 4]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40a6ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a5e3
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40a6da
lea eax, [ebp + 4]
push edi
push edi
push 3
push edi
push edi
push 0x50
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40a5e3
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp + 0x448]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
movsd dword es:[edi], dword [esi]
call fcn.004189b2
pop ecx
xor edi, edi
lea ecx, [ebp + 0x448]
mov dword [eax], ecx
mov dword [eax + 4], edi
cmp dword [ebx + 0x88], 8
jb 0x40a729
mov ebx, dword [ebx + 0x74]
jmp 0x40a72c
add ebx, 0x74
lea eax, [ebp - 0x128]
push 3
mov dword [ebp - 0x12c], eax
push ebx
lea eax, [ebp - 0x12c]
push eax
call fcn.00401378
mov byte [ebp - 4], 2
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40a757
lea eax, [ebp + 0x20]
push 3
push eax
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa8], ecx
call fcn.00401378
push edi
push edi
push edi
push dword [ebp - 0x12c]
push str.HTTP_1.0
push dword [ebp - 0xa8]
push 0x43c5cc
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x40a7b0
push dword [ebp - 0xa8]
call fcn.004189bd
pop ecx
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x12c], eax
je 0x40a7ce
push dword [ebp - 0x12c]
call fcn.004189bd
pop ecx
push edi
cmp ebx, edi
je 0x40a5e4
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40a80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
push 1
lea esi, [ebp + 0x1c]
call fcn.0040200d
push edi
push 1
lea esi, [ebp]
call fcn.0040200d
mov eax, ebx
jmp 0x40a58a
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call fcn.0040a893
mov edi, eax
cmp edi, 0xc8
jne 0x40a82e
mov ecx, dword [ebp - 0x10]
push ebx
lea edx, [ebp - 0x18]
lea esi, [ebp - 0x20]
call fcn.0040a923
push 0x10
call fcn.004197e4
mov edx, dword [ebp - 0x24]
pop ecx
mov ecx, dword [edx + 0xdc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x464]
mov dword [eax + 4], edi
mov dword [edx + 0xe4], ecx
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40a876
mov esi, dword [edx + 8]
test esi, esi
je 0x40a876
mov edi, dword [ecx]
push eax
push 0x401
push esi
push edx
call dword [edi]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x40a7ed