Function at 0x5e6f34
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61242a
mov eax, dword fs:[0]
push eax
mov eax, 0x292c
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28f8], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28f4], ecx
test eax, eax
je 0x5e77fe
xor ebx, ebx
cmp word [eax], bx
je 0x5e77fe
push eax
lea ecx, [ebp - 0x2904]
call fcn.0040d2ee
lea ecx, [ebp - 0x2904]
mov dword [ebp - 4], ebx
call fcn.0040f41c
mov esi, dword [ebp - 0x2904]
test esi, esi
je 0x5e6fb8
push esi
call fcn.00516182
pop ecx
push 7
push str.http:__
push esi
call fcn.005145ed
add esp, 0xc
test eax, eax
jne 0x5e7012
lea eax, [edi + 0x4c]
push 0x636ed0
push 0x6751d4
mov ecx, eax
mov dword [ebp - 0x28fc], eax
call fcn.0041d837
test eax, eax
jne 0x5e6ff4
mov ebx, 0x80004014
jmp 0x5e77ea
push ecx
push ecx
lea ecx, [ebp - 0x28f0]
call fcn.0041d625
push ecx
push esi
lea ecx, [ebp - 0x28f0]
call fcn.0041d674
test eax, eax
jne 0x5e701c
mov ebx, 0x80004001
jmp 0x5e77ea
mov eax, dword [0x668294]
mov dword [ebp - 0x2908], eax
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x2872]
push eax
lea eax, [ebp - 0x2908]
push str.Icy_MetaData:1_r_nUser_Agent:_TTPlayer_r_nHost:__s_r_nAccept:___r_nConnection:_Keep_Alive_r_n_r_n
push eax
call fcn.0040cefd
mov ecx, dword [ebp - 0x28fc]
add esp, 0xc
cmp dword [ebp + 0x18], 0
mov eax, 0xea60
cmova eax, dword [ebp + 0x18]
push dword [ebp - 0x28f4]
mov dword [edi + 0x64], eax
mov edi, dword [ebp - 0x2908]
push 0x44600000
push dword [edi - 8]
push edi
push esi
call fcn.00422056
mov ecx, eax
mov eax, dword [ebp - 0x28f8]
cmp dword [eax + 0x68], 0x12e
mov dword [eax + 0xa0], ecx
jne 0x5e71b4
add eax, 0x74
lea ecx, [ebp - 0x2908]
push eax
call fcn.0040d36e
mov ecx, dword [ebp - 0x28f8]
lea eax, [ebp - 0x2908]
push eax
add ecx, 0x44
call fcn.0040d242
mov ecx, dword [ebp - 0x2908]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5e70ce
call fcn.00407965
mov eax, dword [ebp - 0x28f8]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x5e71aa
push ebx
lea ecx, [ebp - 0x28f4]
mov dword [ebp - 0x2904], ebx
push ecx
lea ecx, [ebp - 0x2904]
mov dword [ebp - 0x28f4], 4
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 0x2904]
test eax, eax
mov eax, dword [0x668294]
mov ecx, 0x1000
cmove edx, ecx
mov dword [ebp - 0x2908], eax
push edx
lea ecx, [ebp - 0x2908]
mov dword [ebp - 0x2904], edx
call fcn.0040cccd
mov ecx, dword [ebp - 0x28fc]
push 0xea60
push ebx
push dword [ebp - 0x2904]
mov dword [ebp - 0x2900], eax
push eax
call fcn.00422636
test eax, eax
jle 0x5e7194
mov edx, dword [ebp - 0x2900]
lea ecx, [ebp - 0x28fc]
push ebx
call fcn.00407b07
pop ecx
mov ecx, dword [ebp - 0x28f8]
push eax
lea ecx, [ecx + 0x48]
call fcn.0040d242
mov ecx, dword [ebp - 0x28fc]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5e7194
call fcn.00407965
mov ecx, dword [ebp - 0x2908]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5e71aa
call fcn.00407965
mov ebx, 0x80040066
jmp 0x5e77da
test ecx, ecx
jne 0x5e71c2
mov ebx, 0x80040064
jmp 0x5e77da
push 0x400
lea ecx, [ebp - 0x414]
push ecx
mov ecx, eax
call fcn.005e78fd
cmp eax, 0xa
jg 0x5e71e4
mov ebx, 0x80040065
jmp 0x5e77da
lea ecx, [ebp - 0x414]
add eax, ecx
mov dword [ebp - 0x290c], eax
push str._r_n_r_n
mov byte [eax], bl
mov eax, ecx
push eax
call fcn.004e1480
pop ecx
pop ecx
test eax, eax
jne 0x5e721a
lea eax, [ebp - 0x414]
push str._n_r_n_r
push eax
call fcn.004e1480
pop ecx
pop ecx
mov dword [ebp - 0x2924], eax
test eax, eax
je 0x5e7259
mov dword [ebp - 0x28f4], eax
add eax, 4
mov dword [ebp - 0x292c], eax
mov eax, dword [ebp - 0x28f8]
push 0xa
push str.ICY_200_OK
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
lea eax, [ebp - 0x414]
push eax
call fcn.00523b6f
add esp, 0xc
test eax, eax
je 0x5e7263
mov ebx, 0x80004005
jmp 0x5e77da
mov edx, dword [ebp - 0x28f4]
lea eax, [ebp - 0x40a]
cmp eax, edx
jae 0x5e7413
mov edi, dword [ebp - 0x28f8]
mov esi, eax
mov ecx, esi
call fcn.005e6f1d
test eax, eax
je 0x5e7407
mov ecx, eax
call fcn.005e6f06
mov dword [ebp - 0x2900], eax
cmp eax, edx
jae 0x5e7407
mov ecx, eax
call fcn.005e6f1d
mov esi, dword [ebp - 0x2924]
test eax, eax
push 8
push str.icy_url:
push dword [ebp - 0x2900]
cmovne esi, eax
mov dword [ebp - 0x28fc], ebx
call fcn.00523b6f
add esp, 0xc
test eax, eax
jne 0x5e7305
mov ecx, dword [ebp - 0x2900]
mov eax, esi
sub eax, ecx
sub eax, 8
push eax
lea eax, [ecx + 8]
push eax
lea ecx, [ebp - 0x2928]
call fcn.0042f05a
push eax
lea ecx, [edi + 0x38]
call fcn.0040cd2a
mov ecx, dword [ebp - 0x2928]
jmp 0x5e7391
push 9
push str.icy_name:
push dword [ebp - 0x2900]
call fcn.00523b6f
add esp, 0xc
test eax, eax
jne 0x5e734c
mov ecx, dword [ebp - 0x2900]
mov eax, esi
sub eax, ecx
sub eax, 9
push eax
lea eax, [ecx + 9]
push eax
lea ecx, [ebp - 0x291c]
call fcn.0042f05a
push eax
lea ecx, [edi + 0x3c]
call fcn.0040cd2a
mov ecx, dword [ebp - 0x291c]
jmp 0x5e7391
push 0xa
push str.icy_genre:
push dword [ebp - 0x2900]
call fcn.00523b6f
add esp, 0xc
test eax, eax
jne 0x5e73a3
mov ecx, dword [ebp - 0x2900]
mov eax, esi
sub eax, ecx
sub eax, 0xa
push eax
lea eax, [ecx + 0xa]
push eax
lea ecx, [ebp - 0x2920]
call fcn.0042f05a
push eax
lea ecx, [edi + 0x40]
call fcn.0040cd2a
mov ecx, dword [ebp - 0x2920]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5e73f9
call fcn.00407965
jmp 0x5e73f9
lea eax, [ebp - 0x28fc]
push eax
push str.icy_br:_d
push dword [ebp - 0x2900]
call fcn.004135ba
add esp, 0xc
cmp eax, 1
jne 0x5e73d1
imul eax, dword [ebp - 0x28fc], 0x3e8
mov dword [edi + 0x28], eax
jmp 0x5e73f9
lea eax, [ebp - 0x28fc]
push eax
push str.icy_metaint:_d
push dword [ebp - 0x2900]
call fcn.004135ba
add esp, 0xc
cmp eax, 1
jne 0x5e73f9
mov eax, dword [ebp - 0x28fc]
mov dword [edi + 0x2c], eax
mov edx, dword [ebp - 0x28f4]
cmp esi, edx
jb 0x5e727f
mov esi, dword [ebp - 0x2904]
mov edi, dword [ebp - 0x2908]
mov eax, dword [ebp - 0x28f8]
add eax, 0x3c
push ecx
push 0x644068
mov ecx, eax
mov dword [ebp - 0x28fc], eax
call fcn.0042e41d
mov dword [ebp - 0x291c], eax
cmp eax, 0xffffffff
je 0x5e74c4
mov ecx, dword [ebp - 0x28fc]
push eax
lea eax, [ebp - 0x2920]
push eax
call fcn.004395d7
mov ecx, dword [ebp - 0x28f8]
push eax
lea ecx, [ecx + 0x38]
call fcn.0040cd2a
mov ecx, dword [ebp - 0x2920]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5e7476
call fcn.00407965
mov edx, dword [ebp - 0x28fc]
mov ecx, dword [ebp - 0x291c]
add ecx, 3
mov eax, dword [edx]
mov eax, dword [eax - 8]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x28f4]
mov ecx, edx
push eax
call fcn.00439672
mov ecx, dword [ebp - 0x28fc]
lea eax, [ebp - 0x28f4]
push eax
call fcn.0040cd2a
mov ecx, dword [ebp - 0x28f4]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5e74c4
call fcn.00407965
mov eax, dword [ebp - 0x28f8]
mov ecx, 0x800
mov dword [ebp - 0x2918], ebx
mov dword [ebp - 0x2914], ebx
mov dword [ebp - 0x2910], ebx
mov eax, dword [eax + 0x28]
shr eax, 5
cmp eax, ecx
cmova ecx, eax
mov dword [ebp - 0x28f4], ecx
lea eax, [ecx + 0x400]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2918]
call fcn.00495eb7
test eax, eax
jne 0x5e7516
mov ebx, 0x8007000e
jmp 0x5e77cf
mov ecx, dword [ebp - 0x290c]
mov eax, dword [ebp - 0x292c]
sub ecx, eax
test ecx, ecx
jle 0x5e7535
push ecx
push eax
lea ecx, [ebp - 0x2918]
call fcn.00417c9d
mov eax, dword [ebp - 0x28f8]
mov ecx, dword [ebp - 0x2910]
mov dword [eax + 0x30], ecx
cmp ecx, dword [ebp - 0x28f4]
jae 0x5e761b
mov esi, dword [ebp - 0x28f8]
mov eax, ecx
cmp eax, dword [esi + 0x2c]
jne 0x5e75a1
cmp dword [esi + 0x2c], 0
je 0x5e75a1
push 1
push 0x677228
mov ecx, esi
call fcn.005e78fd
mov dl, byte [0x677228]
movzx ecx, dl
shl ecx, 4
test eax, eax
jle 0x5e759c
test dl, dl
je 0x5e759c
cmp ecx, 0x400
ja 0x5e759c
push ecx
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.005e78fd
mov dword [esi + 0x30], ebx
mov eax, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x5e75b8
sub ecx, eax
mov edx, 0x400
cmp ecx, edx
mov eax, edx
cmovb eax, ecx
jmp 0x5e75bd
mov eax, 0x400
push eax
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.005e78fd
mov dword [ebp - 0x290c], eax
test eax, eax
jle 0x5e7609
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x2918]
call fcn.00417c9d
mov eax, dword [ebp - 0x290c]
add dword [esi + 0x30], eax
mov ecx, dword [ebp - 0x2910]
mov eax, dword [esi + 0x30]
cmp ecx, dword [ebp - 0x28f4]
jb 0x5e7558
jmp 0x5e760f
mov ecx, dword [ebp - 0x2910]
mov esi, dword [ebp - 0x2904]
mov eax, dword [ebp - 0x28f8]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x2914]
push 0x54
mov dword [ebp - 0x2938], eax
mov dword [ebp - 0x2934], eax
lea eax, [ebp - 0x468]
push ebx
push eax
mov dword [ebp - 0x2930], ecx
call fcn.004e0bc0
lea eax, [ebp - 0x2938]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x468]
call fcn.004b9c85
mov dword [ebp - 0x28f4], eax
cmp eax, 0xffffffff
je 0x5e77b4
cmp eax, dword [ebp - 0x2910]
ja 0x5e77b4
mov edx, dword [ebp - 0x28f8]
mov ecx, 0x40000
mov eax, dword [edx + 0x2c]
shl eax, 4
cmp eax, ecx
cmova ecx, eax
push ecx
lea ecx, [edx + 0xc4]
call fcn.004955cf
mov eax, dword [ebp - 0x2914]
mov edx, ebx
add eax, dword [ebp - 0x28f4]
mov dword [ebp - 0x28fc], eax
mov eax, dword [ebp - 0x28f8]
mov dword [ebp - 0x2900], ebx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x290c], eax
sub eax, dword [ebp - 0x28f4]
je 0x5e7748
mov edi, dword [ebp - 0x28f8]
mov esi, dword [ebp - 0x290c]
mov ebx, dword [ebp - 0x28f4]
lea eax, [edx + 0x400]
mov ecx, 0x400
mov dword [ebp - 0x28f4], ecx
cmp eax, esi
jb 0x5e76fc
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0x28f4], ecx
je 0x5e773a
mov esi, dword [ebp - 0x28fc]
push 1
push ecx
push esi
lea ecx, [edi + 0xa4]
call fcn.004b974f
add esi, dword [ebp - 0x28f4]
mov edx, dword [ebp - 0x2900]
add edx, dword [ebp - 0x28f4]
mov dword [ebp - 0x28fc], esi
mov esi, dword [edi + 0x30]
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x2900], edx
cmp edx, eax
jb 0x5e76db
mov esi, dword [ebp - 0x2904]
xor ebx, ebx
mov edi, dword [ebp - 0x2908]
mov ecx, dword [ebp - 0x28f8]
push 0x12
lea ecx, [ecx + 0x34]
call fcn.00497937
mov ecx, eax
test ecx, ecx
jne 0x5e7765
mov ebx, 0x8007000e
jmp 0x5e77b9
xor eax, eax
mov word [ecx + 0x10], ax
push 0x55
pop eax
mov word [ecx], ax
push 0x10
pop eax
mov word [ecx + 0xe], ax
mov ax, word [ebp - 0x430]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x434]
mov dword [ecx + 4], eax
xor eax, eax
inc eax
mov word [ecx + 0xc], ax
mov eax, dword [ebp - 0x42c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x28f8]
mov dword [eax + 0x24], 0xfffffffe
jmp 0x5e77b9
mov ebx, 0x80004005
lea ecx, [ebp - 0x468]
call fcn.004b9ee4
lea ecx, [ebp - 0x468]
call fcn.004b9f10
lea ecx, [ebp - 0x2918]
call fcn.00419148
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x5e77ea
call fcn.00407965
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5e77fa
call fcn.00407965
mov eax, ebx
jmp 0x5e7803
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da623
leave
ret 0x14