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

Disassembly:
push ebp
mov eax, 0x24bc
lea ebp, [esp - 0x243c]
call fcn.004c7d30
mov eax, dword [0x4ed384]
mov dword [ebp + 0x2438], eax
xor eax, eax
cmp dword [edi + 4], eax
push ebx
mov ebx, ecx
jne 0x4a09e7
push esi
push 0x10000000
push eax
lea esi, [ebp - 0x50]
mov dword [edi + 0x18], eax
call fcn.0041752a
push 0x10000000
push dword [ebp + 0x2444]
mov eax, esi
call fcn.0041758b
test eax, eax
jne 0x4a075b
xor eax, eax
jmp 0x4a09e6
xor esi, esi
push esi
push esi
push 3
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, esi
mov dword [edi + 4], eax
je 0x4a0754
cmp dword [edi + 0x10], esi
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x7c], str.image_gif
mov dword [ebp - 0x78], str.image_x_xbitmap
mov dword [ebp - 0x74], str.image_jpg
mov dword [ebp - 0x70], str.image_pjpeg
mov dword [ebp - 0x6c], str.text_html
mov dword [ebp - 0x68], str.text_xml
mov dword [ebp - 0x64], 0x4d50e4
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x50]
je 0x4a07de
call fcn.004175f3
mov esi, eax
lea eax, [ebp + 0x2444]
push eax
lea eax, [ebp - 0x50]
call fcn.00417657
push edi
or ebx, 0x400000
push ebx
push 0
jmp 0x4a0800
call fcn.004175f3
mov esi, eax
lea eax, [ebp + 0x2444]
push eax
lea eax, [ebp - 0x50]
call fcn.00417657
push edi
or ebx, 0x400000
push ebx
lea ecx, [ebp - 0x7c]
push ecx
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push 0
push eax
push 0x4d50dc
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x2444]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a0830
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4a0844
push eax
call fcn.004013aa
cmp dword [edi + 8], 0
je 0x4a09d7
and dword [ebp + 0x2444], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ebx, dword [ebp + 0x2450]
test ebx, ebx
je 0x4a0876
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a09d7
push 0
push 0
push dword [ebp + 0x244c]
push dword [ebp + 0x2448]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4a08dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
test eax, eax
jne 0x4a09d7
push dword [edi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x5c], eax
push ecx
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test ebx, ebx
setne al
mov dword [ebp - 0x58], ebx
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x80], eax
jne 0x4a09d7
push 0
lea eax, [ebp - 0x54]
push eax
lea ebx, [edi + 0x18]
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x54], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a0998
mov eax, dword [ebx]
cmp eax, 0x12e
je 0x4a099d
cmp eax, 0x197
jne 0x4a094b
cmp dword [ebp + 0x2444], 0
jne 0x4a094b
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0937
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0989
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x4a0984
cmp eax, 0x191
jne 0x4a09cf
cmp dword [ebp + 0x2444], 0
jne 0x4a09cf
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0972
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a0989
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [edi + 8]
call esi
mov dword [ebp + 0x2444], 1
jmp 0x4a085b
and dword [ebx], 0
jmp 0x4a09cf
push 0
lea ecx, [ebp - 0x54]
mov eax, 0x400
lea esi, [edi + 0x24]
push ecx
mov ecx, esi
mov dword [ebp - 0x54], eax
call fcn.00403042
push eax
push 0x21
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a09cf
or eax, 0xffffffff
mov ecx, esi
call fcn.0040306e
cmp dword [ebx], 0x190
jb 0x4a09e3
mov esi, edi
call fcn.004a06bd
jmp 0x4a0754
mov eax, dword [edi + 8]
pop esi
mov ecx, dword [ebp + 0x2438]
pop ebx
call fcn.004c7b01
add ebp, 0x243c
leave
ret 0x10