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

Disassembly:
push ebp
mov eax, 0x24c0
lea ebp, [esp - 0x2440]
call fcn.004c2440
mov eax, dword [0x4e7384]
and dword [ebx + 0x14], 0
push esi
push edi
push 0x10000000
push 0
lea esi, [ebp - 0x4c]
mov dword [ebp + 0x243c], eax
mov edi, ecx
call fcn.00417677
push 0x10000000
push dword [ebp + 0x2448]
mov eax, esi
call fcn.004176d8
test eax, eax
je 0x4a0124
xor esi, esi
push esi
push esi
push 3
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, esi
mov dword [ebp - 0x58], eax
je 0x4a0124
cmp dword [ebx + 0xc], esi
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x80], str.image_gif
mov dword [ebp - 0x7c], str.image_x_xbitmap
mov dword [ebp - 0x78], str.image_jpg
mov dword [ebp - 0x74], str.image_pjpeg
mov dword [ebp - 0x70], str.text_html
mov dword [ebp - 0x6c], str.text_xml
mov dword [ebp - 0x68], 0x4cfd94
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x4c]
je 0x49fefa
call fcn.00417740
mov esi, eax
lea eax, [ebp + 0x2448]
push eax
lea eax, [ebp - 0x4c]
call fcn.004177a4
push ebx
or edi, 0x400000
push edi
push 0
jmp 0x49ff1c
call fcn.00417740
mov esi, eax
lea eax, [ebp + 0x2448]
push eax
lea eax, [ebp - 0x4c]
call fcn.004177a4
push ebx
or edi, 0x400000
push edi
lea ecx, [ebp - 0x80]
push ecx
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push 0
push eax
push 0x4cfd8c
push dword [ebp - 0x58]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x2448]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x49ff4c
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x49ff60
push eax
call fcn.004013aa
cmp dword [ebp - 0x50], 0
je 0x4a0124
and dword [ebp + 0x2448], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
xor esi, esi
cmp dword [ebp + 0x2454], esi
je 0x49ff96
push esi
push dword [ebp + 0x2454]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a0114
push esi
push esi
push dword [ebp + 0x2450]
push dword [ebp + 0x244c]
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
test esi, esi
jne 0x49ffcb
test eax, eax
je 0x4a0114
test eax, eax
je 0x49fffe
push dword [ebx + 0x10]
mov eax, dword [ebx + 8]
push 0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x2454]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x5c], eax
inc ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x4a0114
push 0
lea eax, [ebp - 0x54]
push eax
lea esi, [ebx + 0x14]
push esi
push 0x20000013
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a00ba
mov eax, dword [esi]
cmp eax, 0x12e
je 0x4a00bf
cmp eax, 0x197
jne 0x4a006d
cmp dword [ebp + 0x2448], 0
jne 0x4a006d
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0059
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [ebp - 0x50]
call edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a00ab
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x4a00a6
cmp eax, 0x191
jne 0x4a00f1
cmp dword [ebp + 0x2448], 0
jne 0x4a00f1
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0094
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [ebp - 0x50]
call edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a00ab
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [ebp - 0x50]
call edi
mov dword [ebp + 0x2448], 1
jmp 0x49ff77
and dword [esi], 0
jmp 0x4a00f1
push 0
lea ecx, [ebp - 0x54]
mov eax, 0x400
lea edi, [ebx + 0x20]
push ecx
mov ecx, edi
mov dword [ebp - 0x54], eax
call fcn.00402f4f
push eax
push 0x21
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a00f1
or eax, 0xffffffff
mov ecx, edi
call fcn.00402f7b
mov esi, dword [esi]
cmp esi, 0x190
jae 0x4a0114
cmp esi, 0x12e
je 0x4a0114
lea eax, [ebp - 0x58]
push eax
lea esi, [ebx + 0x24]
call fcn.00446b7d
mov eax, dword [ebp - 0x50]
jmp 0x4a0126
push dword [ebp - 0x50]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x58]
call esi
xor eax, eax
mov ecx, dword [ebp + 0x243c]
pop edi
pop esi
call fcn.004c2215
add ebp, 0x2440
leave
ret 0x10