Function at 0x4a2df3
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.004eae50
mov eax, dword [0x516ad4]
mov dword [ebp + 0x2438], eax
xor eax, eax
cmp dword [edi + 4], eax
push ebx
mov ebx, ecx
jne 0x4a30d9
push esi
push 0x10000000
push eax
lea esi, [ebp - 0x50]
mov dword [edi + 0x1c], eax
call fcn.0041e6dd
push 0x10000000
push dword [ebp + 0x2444]
mov eax, esi
call fcn.0041e73e
test eax, eax
jne 0x4a2e4d
xor eax, eax
jmp 0x4a30d8
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 0x4a2e46
cmp dword [edi + 0x14], 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], 0x4fba84
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x50]
je 0x4a2ed0
call fcn.0041e7a6
mov esi, eax
lea eax, [ebp + 0x2444]
push eax
lea eax, [ebp - 0x50]
call fcn.0041e80a
push edi
or ebx, 0x400000
push ebx
push 0
jmp 0x4a2ef2
call fcn.0041e7a6
mov esi, eax
lea eax, [ebp + 0x2444]
push eax
lea eax, [ebp - 0x50]
call fcn.0041e80a
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 0x4fba7c
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 [0x51a43c]
je 0x4a2f22
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4a2f36
push eax
call fcn.004013aa
cmp dword [edi + 8], 0
je 0x4a30c9
and dword [ebp + 0x2444], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ebx, dword [ebp + 0x2450]
test ebx, ebx
je 0x4a2f68
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a30c9
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 0x4a2fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
test eax, eax
jne 0x4a30c9
push dword [edi + 0x18]
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 0x4a30c9
push 0
lea eax, [ebp - 0x54]
push eax
lea ebx, [edi + 0x1c]
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x54], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a308a
mov eax, dword [ebx]
cmp eax, 0x12e
je 0x4a308f
cmp eax, 0x197
jne 0x4a303d
cmp dword [ebp + 0x2444], 0
jne 0x4a303d
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a3029
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a307b
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x4a3076
cmp eax, 0x191
jne 0x4a30c1
cmp dword [ebp + 0x2444], 0
jne 0x4a30c1
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a3064
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a307b
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [edi + 8]
call esi
mov dword [ebp + 0x2444], 1
jmp 0x4a2f4d
and dword [ebx], 0
jmp 0x4a30c1
push 0
lea ecx, [ebp - 0x54]
mov eax, 0x400
lea esi, [edi + 0x28]
push ecx
mov ecx, esi
mov dword [ebp - 0x54], eax
call fcn.00403308
push eax
push 0x21
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a30c1
or eax, 0xffffffff
mov ecx, esi
call fcn.00403334
cmp dword [ebx], 0x190
jb 0x4a30d5
mov esi, edi
call fcn.004a30ef
jmp 0x4a2e46
mov eax, dword [edi + 8]
pop esi
mov ecx, dword [ebp + 0x2438]
pop ebx
call fcn.004eae3c
add ebp, 0x243c
leave
ret 0x10