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

Disassembly:
mov eax, 0x445c30
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 4
pop esi
mov dword [ebp - 0x28], 1
push ebx
push ebx
push ebx
push ebx
push str.SOSOTbh
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x415d7a
lea eax, [ebp - 0x4c]
push 0x44fa58
push eax
mov dword [ebp - 0x4c], str.Open_Inter_Fail
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x1c]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push esi
push ecx
push 2
push eax
call edi
lea eax, [ebp - 0x1c]
push esi
push eax
push 5
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x1c]
push esi
push eax
push 5
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x1c]
push esi
push eax
push 6
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x1c]
push esi
push eax
push 6
push dword [ebp - 0x14]
call edi
cmp dword [ebp + 8], ebx
jne 0x415dca
mov dword [ebp + 8], ebx
jmp 0x415dfb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0042d380
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 8], edi
cmp dword [ebp + 0x10], ebx
jne 0x415e04
xor edi, edi
jmp 0x415e32
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0042d380
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x415e63
lea eax, [ebp - 0x58]
push 0x44fa58
push eax
mov dword [ebp - 0x58], str.Con_Inter_Fail_
call sub.MSVCRT.dll__CxxThrowException
push ebx
lea ecx, [ebp - 0x68]
push 0x4400040
push ecx
push ebx
push str.HTTP_1.0
push edi
push str.POST
push eax
mov dword [ebp - 0x68], 0x4599b0
mov dword [ebp - 0x64], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
jne 0x415ea8
lea eax, [ebp - 0x38]
push 0x44fa58
push eax
mov dword [ebp - 0x38], str.Open_Request_Fail_
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocString
push 0xffffffffffffffff
push str.Accept:___r_n
push edi
call esi
test eax, eax
jne 0x415ed6
lea eax, [ebp - 0x54]
push 0x44fa58
push eax
mov dword [ebp - 0x54], str.additional_header_failed...
call sub.MSVCRT.dll__CxxThrowException
push 0x10000000
push 0xffffffffffffffff
push 0x44b174
push edi
call esi
test eax, eax
jne 0x415efe
lea eax, [ebp - 0x40]
push 0x44fa58
push eax
mov dword [ebp - 0x40], str.additional_header_failed...
call sub.MSVCRT.dll__CxxThrowException
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x197]
mov byte [ebp - 0x198], bl
mov esi, dword [ebp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x198]
push str.Content_Length:__d_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x198]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x415f5d
lea eax, [ebp - 0x2c]
push 0x44fa58
push eax
mov dword [ebp - 0x2c], str.additional_header_Len_failed...
call sub.MSVCRT.dll__CxxThrowException
push 0x28
lea eax, [ebp - 0x94]
pop edi
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x78], esi
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x415fa6
lea eax, [ebp - 0x48]
push 0x44fa58
push eax
mov dword [ebp - 0x48], str.http_SendRequestEx_fail_
call sub.MSVCRT.dll__CxxThrowException
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x5c], edi
setne byte [ebp - 0x60]
push ebx
push 0x44b1a8
push edi
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_memcpy
push esi
push dword [ebp + 0x14]
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [edi + esi]
push ebx
push 0x44b1ac
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push esi
mov esi, dword [ebp - 0x18]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x416010
lea eax, [ebp - 0x30]
push 0x44fa58
push eax
mov dword [ebp - 0x30], str.Int_WriteFile
call sub.MSVCRT.dll__CxxThrowException
push ebx
push 8
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [0x45724c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.004157f3
pop ecx
cmp eax, ebx
pop ecx
jne 0x416061
lea eax, [ebp - 0x44]
push 0x44fa58
push eax
mov dword [ebp - 0x44], str.HttpRead_fail__
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
call fcn.0040399e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00403a89
cmp byte [ebp - 0x60], bl
je 0x4160aa
push edi
call fcn.0042c9ee
pop ecx
jmp 0x4160aa
cmp dword [ebp - 0x18], ebx
je 0x4160b8
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x4160c6
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x4160d4
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0x1a4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret