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

Disassembly:
push ebp
mov eax, 0x24c8
lea ebp, [esp - 0x2448]
call fcn.004ebd80
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp + 0x2444], eax
mov eax, dword [ebp + 0x2450]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x2454]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x245c]
mov dword [ebp - 0x54], eax
xor eax, eax
cmp dword [edi + 4], eax
push ebx
mov ebx, ecx
jne 0x4a376e
push esi
push 0x10000000
push eax
lea esi, [ebp - 0x44]
mov dword [edi + 0x1c], eax
call fcn.0041e202
push 0x10000000
push dword [ebp - 0x48]
mov eax, esi
call fcn.0041e263
test eax, eax
jne 0x4a34fd
xor eax, eax
jmp 0x4a376d
xor esi, esi
push esi
push esi
push 3
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, esi
mov dword [edi + 4], eax
je 0x4a34f6
cmp dword [edi + 0x14], esi
lea eax, [ebp - 0x4c]
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], 0x4fca84
mov dword [ebp - 0x60], esi
lea eax, [ebp - 0x44]
je 0x4a357d
call fcn.0041e2cb
mov esi, eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
call fcn.0041e32f
push edi
or ebx, 0x400000
push ebx
push 0
jmp 0x4a359c
call fcn.0041e2cb
mov esi, eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
call fcn.0041e32f
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 0x4fca7c
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4a35c9
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4a35dd
push eax
call fcn.004013b2
cmp dword [edi + 8], 0
je 0x4a375e
and dword [ebp - 0x4c], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x4a3609
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a375e
push 0
push 0
push dword [ebp + 0x2458]
push dword [ebp - 0x50]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4a366c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
setne cl
mov eax, ecx
test eax, eax
jne 0x4a375e
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 0x4a375e
push 0
lea eax, [ebp - 0x48]
push eax
lea ebx, [edi + 0x1c]
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x48], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a371f
mov eax, dword [ebx]
cmp eax, 0x12e
je 0x4a3724
cmp eax, 0x197
jne 0x4a36d8
cmp dword [ebp - 0x4c], 0
jne 0x4a36d8
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a36c4
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 0x4a3713
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x4a370e
cmp eax, 0x191
jne 0x4a3756
cmp dword [ebp - 0x4c], 0
jne 0x4a3756
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a36fc
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 0x4a3713
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [edi + 8]
call esi
mov dword [ebp - 0x4c], 1
jmp 0x4a35f1
and dword [ebx], 0
jmp 0x4a3756
push 0
lea ecx, [ebp - 0x48]
mov eax, 0x400
lea esi, [edi + 0x28]
push ecx
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.00403201
push eax
push 0x21
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a3756
or eax, 0xffffffff
mov ecx, esi
call fcn.0040322d
cmp dword [ebx], 0x190
jb 0x4a376a
mov esi, edi
call fcn.004a3786
jmp 0x4a34f6
mov eax, dword [edi + 8]
pop esi
mov ecx, dword [ebp + 0x2444]
xor ecx, ebp
pop ebx
call fcn.004ebd70
add ebp, 0x2448
leave
ret 0x10