Function at 0x49dc08
Capabilities:
Check http status code
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1298
call fcn.004bf900
and dword [ebx + 0x14], 0
push esi
push edi
push 0x10000000
push 0
lea esi, [ebp - 0x1298]
mov edi, ecx
call fcn.00416cc3
push 0x10000000
push dword [ebp + 8]
mov eax, esi
call fcn.00416d24
test eax, eax
je 0x49ded4
xor esi, esi
push esi
push esi
push 3
push dword [ebp - 0x1274]
push dword [ebp - 0x127c]
push dword [ebp - 0x1280]
push dword [ebp - 0x1288]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x49ded4
cmp dword [ebx + 0xc], esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x34], str.image_gif
mov dword [ebp - 0x30], str.image_x_xbitmap
mov dword [ebp - 0x2c], 0x4cc110
mov dword [ebp - 0x28], str.image_pjpeg
mov dword [ebp - 0x24], str.text_html
mov dword [ebp - 0x20], str.text_xml
mov dword [ebp - 0x1c], 0x4cc0e8
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1298]
je 0x49dcdc
call fcn.00416d8b
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1298]
call fcn.00416def
push ebx
or edi, 0x400000
push edi
push 0
jmp 0x49dcfe
call fcn.00416d8b
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1298]
call fcn.00416def
push ebx
or edi, 0x400000
push edi
lea ecx, [ebp - 0x34]
push ecx
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push 0
push eax
push 0x4cc0e4
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x49dd2b
push eax
call fcn.00401377
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x49dd3f
push eax
call fcn.00401377
cmp dword [ebp + 8], 0
je 0x49ded4
and dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x49dd6c
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x49dec4
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
test esi, esi
jne 0x49dd9b
test eax, eax
je 0x49dec4
test eax, eax
je 0x49ddcb
push dword [ebx + 0x10]
mov eax, dword [ebx + 8]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x10], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x49dec4
push 0
lea eax, [ebp - 8]
push eax
lea esi, [ebx + 0x14]
push esi
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x49de6a
mov eax, dword [esi]
cmp eax, 0x12e
je 0x49de6f
cmp eax, 0x197
jne 0x49de29
cmp dword [ebp - 4], 0
jne 0x49de29
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49de18
inc ecx
push ecx
push eax
push 0x2b
push dword [ebp + 8]
call edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49de5e
inc ecx
push ecx
push eax
push 0x2c
jmp 0x49de59
cmp eax, 0x191
jne 0x49dea1
cmp dword [ebp - 4], 0
jne 0x49dea1
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49de4a
inc ecx
push ecx
push eax
push 0x1c
push dword [ebp + 8]
call edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49de5e
inc ecx
push ecx
push eax
push 0x1d
push dword [ebp + 8]
call edi
mov dword [ebp - 4], 1
jmp 0x49dd53
and dword [esi], 0
jmp 0x49dea1
push 0
lea ecx, [ebp - 8]
mov eax, 0x400
lea edi, [ebx + 0x20]
push ecx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004030e2
push eax
push 0x21
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x49dea1
or eax, 0xffffffff
mov ecx, edi
call fcn.0040310e
mov esi, dword [esi]
cmp esi, 0x190
jae 0x49dec4
cmp esi, 0x12e
je 0x49dec4
lea eax, [ebp - 0xc]
push eax
lea esi, [ebx + 0x24]
call fcn.00415250
mov eax, dword [ebp + 8]
jmp 0x49ded6
push dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10