Function at 0x48711e
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae67
mov eax, dword fs:[0]
push eax
mov eax, 0x28a4
call fcn.00496530
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x2840], ebx
mov dword [ebp - 0x28b0], ebx
mov dword [ebp - 0x28ac], ebx
mov dword [ebp - 0x28a8], ebx
lea eax, [esi + 0x38]
push eax
push str.Content_type:_multipart_form_data__boundary
lea eax, [ebp - 0x284c]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2838], ebx
mov dword [ebp - 0x2830], ebx
mov dword [ebp - 0x281c], ebx
mov dword [ebp - 0x2828], ebx
call fcn.004799e9
push 0xfff
lea eax, [ebp - 0x1c0f]
push ebx
push eax
mov dword [ebp - 0x2878], 0x4a1f3c
mov dword [ebp - 0x2874], ebx
mov byte [ebp - 0x1c10], bl
call sub.MSVCR100.dll_memset
mov eax, dword [0x4c8014]
add esp, 0xc
mov dword [ebp - 0x2848], ebx
mov dword [ebp - 0x2824], eax
xor edi, edi
inc edi
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2820], esp
push str.Calculating_size_of_data_to_send.
mov byte [ebp - 4], 2
mov dword [ebp - 0x2860], ebx
mov dword [ebp - 0x285c], ebx
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
lea eax, [ebp - 0x2860]
push eax
mov ecx, esi
call fcn.00486fea
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2820], esp
cmp eax, ebx
jne 0x48722f
push str.Error_calculating_size_of_data_to_send_
jmp 0x4878e0
push str.Opening_Internet_connection.
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
push ebx
push ebx
push ebx
push ebx
push 0x4a1e54
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2838], eax
cmp eax, ebx
jne 0x48726f
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2820], esp
push str.Error_opening_Internet_session
jmp 0x4878e0
mov ecx, dword [esi]
push 0x400
lea eax, [ebp - 0x2410]
push eax
lea eax, [ebp - 0x2828]
push eax
mov eax, 0x200
push eax
lea edx, [ebp - 0x410]
push edx
push eax
lea eax, [ebp - 0x2810]
push eax
push ecx
mov ecx, esi
call fcn.0048607d
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2820], esp
push str.Connecting_to_server
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x2828]
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x2838]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x2830], eax
cmp eax, ebx
jne 0x4872fc
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2820], esp
push str.Error_connecting_to_server
jmp 0x4878e0
push 4
lea ecx, [ebp - 0x2868]
push ecx
push 6
push eax
mov dword [ebp - 0x2868], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [esi + 0x24]
call fcn.00461490
test al, al
jne 0x4878ed
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2820], esp
push str.Opening_HTTP_request...
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
cmp dword [ebp - 0x2828], 0x1bb
mov dword [ebp - 0x2850], 0x4200000
jne 0x487361
mov dword [ebp - 0x2850], 0x4a00000
mov dword [ebp - 0x283c], ebx
mov dword [ebp - 0x2844], ebx
cmp dword [ebp - 0x2844], ebx
je 0x487381
cmp dword [ebp - 0x283c], ebx
je 0x4878a9
inc dword [ebp - 0x2844]
push ebx
push dword [ebp - 0x2850]
lea eax, [ebp - 0x2878]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2410]
push eax
push str.POST
push dword [ebp - 0x2830]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x281c], eax
cmp eax, ebx
je 0x4877fe
lea ecx, [ebp - 0x2854]
push ecx
lea ecx, [ebp - 0x2834]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x2834], ebx
mov dword [ebp - 0x2854], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x2834], 0x3280
push 4
lea eax, [ebp - 0x2834]
push eax
push 0x1f
push dword [ebp - 0x281c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x284c]
push edi
mov dword [ebp - 0x2898], eax
push ebx
mov dword [ebp - 0x28a0], 0x28
mov dword [ebp - 0x289c], ebx
mov eax, dword [eax - 8]
push ecx
mov dword [ebp - 0x2894], eax
mov eax, dword [ebp - 0x2860]
mov ecx, esp
mov dword [ebp - 0x2818], esp
push str.Sending_HTTP_request...
mov dword [ebp - 0x2890], ebx
mov dword [ebp - 0x288c], ebx
mov dword [ebp - 0x2888], ebx
mov dword [ebp - 0x2884], eax
mov dword [ebp - 0x2880], ebx
mov dword [ebp - 0x287c], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28a0]
push eax
push dword [ebp - 0x281c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x487813
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x2818], ecx
cmp ecx, eax
je 0x4874e7
mov eax, dword [ebp - 0x2818]
push ecx
add eax, 0xc
mov ecx, esp
mov dword [ebp - 0x2814], esp
push eax
call fcn.0045e829
push dword [ebp - 0x281c]
mov ecx, esi
call fcn.004868d9
cmp eax, ebx
je 0x4878ed
lea ecx, [ebp - 0x2818]
call fcn.004785c7
mov eax, dword [esi + 8]
cmp dword [ebp - 0x2818], eax
jne 0x4874a4
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x2818], ecx
cmp ecx, eax
je 0x487539
mov eax, dword [ebp - 0x2818]
push ecx
add eax, 0xc
mov ecx, esp
mov dword [ebp - 0x2814], esp
push eax
call fcn.0045e829
push dword [ebp - 0x281c]
mov ecx, esi
call fcn.00486b8e
cmp eax, ebx
je 0x4878ed
lea ecx, [ebp - 0x2818]
call fcn.00478602
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x2818], eax
jne 0x4874f6
push dword [ebp - 0x281c]
mov ecx, esi
call fcn.00486f40
cmp eax, ebx
je 0x4878ed
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Ending_HTTP_request...
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
push ebx
push ebx
push ebx
push dword [ebp - 0x281c]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
test eax, eax
je 0x487828
push str.Reading_server_response...
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
push ebx
lea eax, [ebp - 0x2870]
push eax
lea eax, [ebp - 0x282c]
push eax
push 0x20000013
push dword [ebp - 0x281c]
mov dword [ebp - 0x282c], ebx
mov dword [ebp - 0x2870], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x2818], eax
cmp eax, ebx
je 0x487612
push dword [ebp - 0x282c]
lea eax, [ebp - 0x2824]
push str.Server_response_code:__ld
push eax
call fcn.00460165
add esp, 0xc
push edi
push ebx
push ecx
lea eax, [ebp - 0x2824]
mov ecx, esp
mov dword [ebp - 0x2814], esp
push eax
call fcn.0045e829
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
lea eax, [ebp - 0x2848]
push eax
push 0xfff
lea eax, [ebp - 0x1c10]
push eax
push dword [ebp - 0x281c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2848]
push eax
mov byte [ebp + eax - 0x1c10], bl
lea eax, [ebp - 0x1c10]
push eax
lea ecx, [ebp - 0x2858]
call fcn.004863d9
push eax
lea ecx, [ebp - 0x2824]
mov byte [ebp - 4], 3
call fcn.0045f9b8
lea ecx, [ebp - 0x2858]
mov byte [ebp - 4], 2
call fcn.0045ddba
lea eax, [ebp - 0x2824]
push eax
push str.Server_response_body:
lea eax, [ebp - 0x2864]
push eax
call fcn.004799e9
push eax
lea ecx, [ebp - 0x2824]
mov byte [ebp - 4], 4
call fcn.0045f9b8
lea ecx, [ebp - 0x2864]
mov byte [ebp - 4], 2
call fcn.0045ddba
push edi
push ebx
push ecx
lea eax, [ebp - 0x2824]
mov ecx, esp
mov dword [ebp - 0x2814], esp
push eax
call fcn.0045e829
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
cmp dword [ebp - 0x2848], ebx
jbe 0x4876e4
cmp byte [ebp - 0x1c10], 0x30
jb 0x4876e4
cmp byte [ebp - 0x1c10], 0x39
jbe 0x487832
cmp dword [ebp - 0x2818], ebx
je 0x4878cf
cmp dword [ebp - 0x282c], 0x12e
jne 0x48789d
cmp dword [ebp - 0x283c], ebx
jne 0x487877
xor eax, eax
push 0x7fe
mov word [ebp - 0xc10], ax
lea eax, [ebp - 0xc0e]
push ebx
push eax
mov dword [ebp - 0x283c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x286c]
push eax
lea eax, [ebp - 0x2820]
push eax
lea eax, [ebp - 0xc10]
push eax
push 0x21
push dword [ebp - 0x281c]
mov dword [ebp - 0x2820], 0x1000
mov dword [ebp - 0x286c], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, ebx
je 0x48788a
push 0x400
lea eax, [ebp - 0x2410]
push eax
lea eax, [ebp - 0x2828]
push eax
mov eax, 0x200
push eax
lea ecx, [ebp - 0x410]
push ecx
push eax
lea eax, [ebp - 0x2810]
push eax
lea eax, [ebp - 0xc10]
push eax
mov ecx, esi
call fcn.0048607d
mov eax, dword [0x4c8014]
mov dword [ebp - 0x2818], eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x2818]
push str.Redirecting_to__s
push eax
mov byte [ebp - 4], 5
call fcn.00460165
add esp, 0xc
push edi
push ebx
push ecx
lea eax, [ebp - 0x2818]
mov ecx, esp
mov dword [ebp - 0x2814], esp
push eax
call fcn.0045e829
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
lea ecx, [ebp - 0x2818]
mov byte [ebp - 4], 2
call fcn.0045ddba
jmp 0x48736d
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.HttpOpenRequest_has_failed.
jmp 0x4878e0
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.HttpSendRequestEx_has_failed.
jmp 0x4878e0
push str.HttpEndRequest_has_failed.
jmp 0x4878e0
push edi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Assuming_legacy_method_of_determining_delivery_status__from_HTTP_response_body_.
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
lea eax, [ebp - 0x1c10]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
pop ecx
cmp eax, 0xc8
je 0x4878a9
push ebx
push 0x64
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Failed__HTTP_response_body_doesnt_start_with_code_200_.
jmp 0x4878e0
push ebx
push 0x64
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Multiple_redirects_are_not_allowed.
jmp 0x4878e0
push ebx
push 0x64
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Failed_to_redirect.
jmp 0x4878e0
cmp dword [ebp - 0x282c], 0xc8
jne 0x4878cf
push ebx
push 0x64
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Error_report_has_been_sent_OK_
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
mov dword [ebp - 0x2840], edi
jmp 0x48790b
push ebx
push 0x64
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Failed__HTTP_response_code_is_not_equal_to_200_.
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
push ebx
push 0x64
push ecx
mov ecx, esp
mov dword [ebp - 0x2814], esp
push str.Error_sending_HTTP_request.
call fcn.0045ffe5
mov ecx, dword [esi + 0x24]
call fcn.00461a7e
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x281c], ebx
je 0x487921
push dword [ebp - 0x281c]
call edi
cmp dword [ebp - 0x2830], ebx
je 0x487931
push dword [ebp - 0x2830]
call edi
cmp dword [ebp - 0x2838], ebx
je 0x487941
push dword [ebp - 0x2838]
call edi
mov ecx, dword [esi + 0x24]
xor eax, eax
cmp dword [ebp - 0x2840], ebx
sete al
push eax
call fcn.00461571
lea ecx, [ebp - 0x2824]
call fcn.0045ddba
lea ecx, [ebp - 0x284c]
call fcn.0045ddba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28b0]
call fcn.0045fe4f
mov eax, dword [ebp - 0x2840]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049614a
leave
ret