Function at 0x411190
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
mov dword [ebp - 4], ecx
xor edi, edi
call dword [sym.imp.MSVCR80.dll__wcsdup]
mov bl, byte [ebp + 0x20]
neg bl
mov esi, eax
push 0x3a
push esi
sbb ebx, ebx
and ebx, 0x16b
add ebx, 0x50
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 0xc
test eax, eax
je 0x4111dd
push 0xa
mov word [eax], di
add eax, 2
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcstol]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
call fcn.004044f0
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
push edx
push str.HttpPost::Transmit:__s__s
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [ebp + 0x20], 0
mov dword [ebp + 0xc], str.https
jne 0x411217
mov dword [ebp + 0xc], str.http
call fcn.004044f0
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edx
push str.url:__s:___s:_d_s
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x18
cmp dword [ebp + 0x1c], edi
je 0x411268
call fcn.004044f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x44]
push str.Opening_with_supplied_proxy
call eax
mov ecx, dword [ebp + 0x1c]
push 0
push 0
push ecx
push 3
push str.BSIlm_0.9.0.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp + 0x1c], eax
jmp 0x41127e
push 0
push 0
push 0
push 0
push str.BSIlm_0.9.0.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp + 0x1c], eax
test eax, eax
jne 0x4112b7
call fcn.004044f0
mov ebx, eax
mov edi, dword [ebx]
add edi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
push eax
push str.InternetOpen_Failed__GLE__d_
push ebx
call edx
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x10
pop edi
pop esi
mov eax, 0xffffc94c
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0
push 0
push 3
push 0
push 0
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0xc], ebx
jne 0x4112fb
call fcn.004044f0
mov ebx, eax
mov edi, dword [ebx]
add edi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
push str.InternetConnect_Failed__GLE__d_
push ebx
call eax
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov edi, 0xffffc94c
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test edi, edi
jne 0x4113fd
call fcn.004044f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
push str.Opening_request_for_POST
call eax
cmp byte [ebp + 0x20], 0
mov eax, 0x4400000
je 0x411330
mov eax, 0x4c00000
mov ecx, dword [ebp + 0x10]
push 0
push eax
push 0
push 0
push 0
push ecx
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
call fcn.004044f0
mov edx, dword [eax]
push esi
push str.Opened_POST_request__hreq___ld
push eax
mov eax, dword [edx + 0x38]
call eax
add esp, 0xc
test esi, esi
jne 0x41138c
call fcn.004044f0
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push eax
push str.Failed_to_open_request_handle__GLE__d_
push edi
call ecx
add esp, 0xc
mov edi, 0xffffc94c
jmp 0x4113fd
mov ebx, dword [ebp - 4]
push esi
mov ecx, ebx
call fcn.00411070
mov edi, eax
test edi, edi
jne 0x4113c9
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push esi
push edx
push eax
mov ecx, ebx
call fcn.00410f10
push esi
mov ecx, ebx
mov edi, eax
call fcn.00410c60
test edi, edi
jne 0x4113c9
mov ecx, dword [ebp + 8]
push ecx
push esi
mov ecx, ebx
call fcn.00410ac0
mov edi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x4113fa
call fcn.004044f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call ebx
mov edx, dword [esi]
push eax
push str.Failed_to_close_handle_hRequest__GLE__d_
push edi
call edx
add esp, 0xc
call ebx
mov edi, eax
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x41142d
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x41142d
call fcn.004044f0
mov ebx, eax
mov esi, dword [ebx]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
push str.Failed_to_close_Request_handle_hiConnect__GLE__d_
push ebx
call eax
add esp, 0xc
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x411460
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x411460
call fcn.004044f0
mov ebx, eax
mov esi, dword [ebx]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push eax
push str.Failed_to_close_Request_handle_hi__GLE__d_
push ebx
call ecx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c