Function at 0x46ccef
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x20
push esi
push edi
xor edi, edi
push edi
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, ebx
call fcn.0046d1ad
cmp eax, edi
jne 0x46cd94
cmp byte [ebp + 0x24], 0
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
mov dword [ebp - 0x18], eax
mov esi, 0x8440c000
je 0x46cd2f
mov esi, 0x84c0c000
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x20], 0x4e1ed0
mov dword [ebp - 0x1c], edi
call fcn.0041f0fb
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
je 0x46cd5b
push ecx
push eax
lea eax, [ebp - 4]
call fcn.00438d54
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov eax, ebx
push dword [ebp + 0xc]
push dword [ebx + 8]
call fcn.0046d204
cmp eax, edi
je 0x46cd9a
mov esi, eax
lea ecx, [ebp - 4]
call fcn.004058e3
push 0
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 0x28
mov eax, dword [ebx + 4]
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
call fcn.00409513
mov esi, dword [ebp + 0x28]
cmp dword [esi], edi
jbe 0x46cde4
lea ecx, [ebp + 0x24]
call fcn.00409513
push dword [esi]
lea eax, [ebp + 0x24]
push str.Range:_bytes_u__r_n
push eax
call fcn.0043e52f
mov eax, dword [ebp + 0x24]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x1c]
call fcn.00438d54
lea ecx, [ebp + 0x24]
call fcn.004058e3
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x46cdf5
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00438cdb
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
je 0x46ce00
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax - 0xc]
push dword [ebx + 0x58]
mov esi, edi
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ebx + 4]
mov dword [ebp + 0x24], eax
mov dword [ebx + 0x30], 7
mov byte [ebx + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push edi
push esi
push dword [ebp + 0x24]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x46ce4a
mov esi, ebx
call fcn.0046d2b5
xor esi, esi
cmp eax, esi
je 0x46ce4c
jmp 0x46ce59
xor esi, esi
cmp dword [ebx + 0x2c], esi
je 0x46ce56
mov dword [ebp + 0x24], esi
jmp 0x46ce5c
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x24], eax
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push dword [ebx + 4]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0xc], 4
call edi
test eax, eax
je 0x46d0ae
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
push 0x20000005
push dword [ebx + 4]
call edi
test eax, eax
jne 0x46cea3
mov dword [ebp + 0x10], eax
jmp 0x46cea6
mov eax, dword [ebp + 0x10]
cmp byte [ebx + 0x54], 0
je 0x46cee5
cmp dword [ebp + 0x18], 0x130
je 0x46cee5
push 0
lea eax, [ebp - 8]
push eax
lea esi, [ebx + 0x44]
push esi
push 0x4000000b
push dword [ebx + 4]
mov dword [ebp - 8], 0x10
call edi
test eax, eax
jne 0x46cee0
push 0x10
push eax
push esi
call fcn.0049d850
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor esi, esi
mov edx, dword [ebp + 0x18]
mov ecx, 0x193
cmp edx, ecx
ja 0x46d02f
je 0x46d0ff
mov ecx, edx
sub ecx, 0xc8
je 0x46d013
sub ecx, 6
je 0x46cffa
sub ecx, 0x62
je 0x46d0cb
sub ecx, 0x61
jne 0x46d04f
mov dword [ebp + 0x24], 0xe0000012
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
mov dword [eax], esi
mov eax, dword [ebp + 0x24]
cmp eax, 0x2f0d
je 0x46d05e
cmp eax, 0x2f0c
je 0x46d05e
cmp eax, 0x2f06
je 0x46d05e
cmp eax, 0x2f05
je 0x46d05e
cmp eax, 0xe0000012
jne 0x46d15d
lea edi, [ebx + 0x6c]
push 7
call fcn.00479ebd
push 5
mov eax, edi
call fcn.00479e3d
lea ecx, [ebp + 0x20]
call fcn.00409513
lea ecx, [ebp + 0x14]
call fcn.00409513
lea ecx, [ebp + 8]
call fcn.00409513
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
push dword [ebx + 4]
push ebx
call fcn.0046d806
cmp dword [ebp + 0x18], 0x197
lea ecx, [ebp + 0x20]
sete al
movzx eax, al
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
lea eax, [ebp + 0x14]
mov esi, ebx
call fcn.0046d87c
push 4
test al, al
je 0x46d123
mov eax, edi
call fcn.00479e3d
lea ecx, [ebp + 8]
call fcn.004058e3
lea ecx, [ebp + 0x14]
call fcn.004058e3
lea ecx, [ebp + 0x20]
call fcn.004058e3
jmp 0x46ce00
cmp eax, esi
je 0x46cf2b
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
jmp 0x46cf35
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
cmp eax, esi
jbe 0x46d027
mov ecx, dword [ebp + 0x28]
cmp dword [ecx], eax
jae 0x46d0e5
mov eax, dword [ebp + 0x28]
jmp 0x46cf33
mov ecx, edx
sub ecx, 0x194
je 0x46d189
sub ecx, 3
je 0x46cf24
sub ecx, 3
je 0x46d189
mov ecx, dword [ebp + 0x28]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
jmp 0x46cf35
lea edi, [ebx + 0x6c]
push 6
call fcn.00479ebd
push 5
mov eax, edi
call fcn.00479e3d
mov eax, dword [edi + 8]
mov esi, dword [ebx + 4]
test eax, eax
jne 0x46d081
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 7
push dword [ebp + 0x24]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
push 4
test eax, eax
jne 0x46d169
mov eax, edi
call fcn.00479e3d
lea esi, [ebp + 0x1c]
call fcn.00405b06
jmp 0x46ce00
push ebx
call fcn.0046d8d3
lea ecx, [ebp + 0x1c]
mov esi, eax
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
jmp 0x46cd76
lea ecx, [ebp + 0x1c]
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
mov esi, 0xe0000013
jmp 0x46cd76
lea ecx, [ebp + 0x1c]
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
mov esi, 0xe0000010
jmp 0x46cd76
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x1c]
mov dword [eax], esi
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
mov esi, 0xe0000016
jmp 0x46cd76
lea eax, [ebx + 0x6c]
call fcn.00479e3d
lea ecx, [ebp + 8]
call fcn.004058e3
lea ecx, [ebp + 0x14]
call fcn.004058e3
lea ecx, [ebp + 0x20]
call fcn.004058e3
lea ecx, [ebp + 0x1c]
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
mov esi, 0xe0000012
jmp 0x46cd76
cmp eax, esi
jne 0x46d171
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
jmp 0x46d171
lea eax, [ebx + 0x6c]
call fcn.00479e3d
lea ecx, [ebp + 0x1c]
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
mov esi, dword [ebp + 0x24]
jmp 0x46cd76
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x1c]
mov dword [eax], esi
call fcn.004058e3
lea edi, [ebp - 0x10]
call fcn.0046d8e6
mov esi, 0xe0000018
jmp 0x46cd76