Function at 0x40ddd1
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x72b8dc
call fcn.004dc888
mov eax, 0x1238
call fcn.004d61c0
push ebx
xor eax, eax
xor ebx, ebx
push 0x3e
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov byte [ebp + 0x73], bl
call fcn.004d4a00
xor eax, eax
add esp, 0xc
mov dword [ebp + 0x5c], 7
mov dword [ebp + 0x58], ebx
mov word [ebp + 0x48], ax
push ebx
push ebx
push ebx
push ebx
push str.Test_Secure_Connection
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp + 0x64], eax
cmp eax, ebx
jne 0x40de64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp]
push 0x7c6ab4
push eax
call fcn.0040e62e
add esp, 0xc
push str.Unable_to_open_Internet._Error:
lea ecx, [ebp + 0x48]
call fcn.0040cd8d
lea eax, [ebp]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040e2a8
jmp 0x40e0d1
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x2a4], ax
lea eax, [ebp - 0x2a2]
push ebx
push eax
call fcn.004d4a00
xor eax, eax
push 0xf9e
mov word [ebp - 0x1244], ax
lea eax, [ebp - 0x1242]
push ebx
push eax
call fcn.004d4a00
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.004d4a00
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1244]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x7c]
add esp, 0x24
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x34], 0x103
mov dword [ebp - 0x18], 0x7cf
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ded5
lea ecx, [ebp - 0x48]
push ecx
sub eax, edx
push ebx
sar eax, 1
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40df63
push dword [ebp + 0x7c]
lea ecx, [ebp - 0x64]
call fcn.0040cc6d
push eax
lea eax, [ebp - 0x9c]
push 0x7c6b08
push eax
mov byte [ebp - 4], 1
call fcn.0040e60d
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 2
call fcn.0040e646
add esp, 0x14
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 3
call fcn.0040e252
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040cdb2
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040cdb2
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040cdb2
mov byte [ebp + 0x73], 1
jmp 0x40e0c7
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push dword [ebp + 0x64]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp + 0x68], eax
cmp eax, ebx
jne 0x40dfb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp]
push 0x7c6ab4
push eax
call fcn.0040e62e
add esp, 0xc
push str.InternetConnect__:_Error:
lea ecx, [ebp + 0x48]
call fcn.0040cd8d
lea eax, [ebp]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040e2a8
jmp 0x40e0c7
xor eax, eax
cmp dword [ebp - 0x3c], 4
jne 0x40dfc3
mov eax, 0x800000
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push str.HEAD
push dword [ebp + 0x68]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
jne 0x40e016
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp]
push 0x7c6ab4
push eax
call fcn.0040e62e
add esp, 0xc
push str.HttpOpenRequest__:_Error:
lea ecx, [ebp + 0x48]
call fcn.0040cd8d
lea eax, [ebp]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040e2a8
jmp 0x40e0be
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40e059
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp]
push 0x7c6ab4
push eax
call fcn.0040e62e
add esp, 0xc
push str.HttpSendRequest__:_Error:
lea ecx, [ebp + 0x48]
call fcn.0040cd8d
lea eax, [ebp]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040e2a8
jmp 0x40e0b7
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0x20000013
push esi
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x40], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40e0a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp]
push 0x7c6ab4
push eax
call fcn.0040e62e
add esp, 0xc
push str.HttpQueryInfo__:_Error:
jmp 0x40e042
mov eax, dword [ebp + 0x6c]
add eax, 0xffffff38
mov ecx, 0xc7
cmp ecx, eax
sbb al, al
inc al
mov byte [ebp + 0x73], al
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x68]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 0x64]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.0040cdb2
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0x73]
pop ebx
mov dword fs:[0], ecx
add ebp, 0x74
leave
ret