Function at 0x5eda42
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0x808], eax
cmp dword [eax + 0x74], ebx
je 0x5edd04
cmp dword [eax + 0x80], ebx
je 0x5edd04
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x818], 4
push esi
mov esi, dword [0x668294]
mov dword [ebp - 0x814], esi
push edi
mov edi, esi
mov dword [ebp - 0x80c], edi
test ecx, ecx
je 0x5edafb
mov esi, dword [ecx + 0x10]
test esi, esi
jne 0x5edaad
mov eax, ebx
jmp 0x5edab4
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.0040f513
mov ecx, dword [ebp - 0x808]
mov eax, dword [ecx + 0x40]
mov esi, dword [eax + 0x14]
test esi, esi
jne 0x5edad5
mov eax, ebx
jmp 0x5edadc
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0x80c]
call fcn.0040f513
mov esi, dword [ebp - 0x814]
mov edi, dword [ebp - 0x80c]
mov eax, dword [ebp - 0x808]
push ebx
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push 0x20000013
push dword [eax + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x5edce1
mov eax, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x808]
cmp eax, 0x197
jne 0x5edb76
cmp dword [ecx + 0xa0], ebx
jne 0x5edbd3
mov eax, dword [esi - 8]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x5edb62
lea eax, [eax*2 + 2]
push eax
push esi
push 0x2b
push dword [ecx + 0x74]
call ebx
mov ecx, dword [ebp - 0x808]
mov eax, dword [edi - 8]
test eax, eax
je 0x5edbbf
lea eax, [eax*2 + 2]
push eax
push edi
push 0x2c
jmp 0x5edbba
cmp eax, 0x191
jne 0x5edbd3
cmp dword [ecx + 0xa0], ebx
jne 0x5edbd3
mov eax, dword [esi - 8]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x5edba8
lea eax, [eax*2 + 2]
push eax
push esi
push 0x1c
push dword [ecx + 0x74]
call ebx
mov ecx, dword [ebp - 0x808]
mov eax, dword [edi - 8]
test eax, eax
je 0x5edbbf
lea eax, [eax*2 + 2]
push eax
push edi
push 0x1d
push dword [ecx + 0x74]
call ebx
mov ecx, dword [ebp - 0x808]
xor ebx, ebx
inc ebx
mov dword [ecx + 0xa0], ebx
jmp 0x5edce1
mov dword [ecx + 0x34], eax
cmp eax, 0x190
jae 0x5edce1
push ebx
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push 0x20000005
push dword [ecx + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x5edce1
mov ecx, dword [ebp - 0x808]
mov eax, dword [ebp - 0x810]
push 0x800
push ebx
mov dword [ecx + 0x38], eax
lea eax, [ebp - 0x804]
push eax
mov dword [ebp - 0x81c], 0x400
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x81c]
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x808]
push 1
push dword [eax + 0x74]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x5edce1
mov eax, dword [ebp - 0x808]
lea ecx, [ebp - 0x814]
add eax, 0x3c
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x804]
push eax
call fcn.0040d2ee
mov ecx, eax
call fcn.0042a09a
mov ecx, dword [ebp - 0x80c]
push eax
call fcn.0040d242
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5edca6
call fcn.00407965
push ecx
mov ecx, dword [ebp - 0x80c]
push str.text
call fcn.0040cf21
test eax, eax
jns 0x5edce1
mov eax, dword [ebp - 0x808]
mov edx, dword [eax + 0x80]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x68]
add eax, ecx
cmp dword [edx + 0x1c], ebx
jne 0x5edcd9
mov dword [edx + 0x1c], eax
jmp 0x5edcde
cmp dword [edx + 0x1c], eax
jne 0x5edce1
push 2
pop ebx
lea ecx, [edi - 0xc]
mov edi, 0x668010
cmp ecx, edi
je 0x5edcf2
call fcn.00407965
lea ecx, [esi - 0xc]
cmp ecx, edi
pop edi
pop esi
je 0x5edd00
call fcn.00407965
mov eax, ebx
jmp 0x5edd06
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret