Function at 0x46c15f
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.0046c61d
cmp eax, edi
jne 0x46c204
cmp byte [ebp + 0x24], 0
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
mov dword [ebp - 0x18], eax
mov esi, 0x8440c000
je 0x46c19f
mov esi, 0x84c0c000
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x20], 0x4e0e8c
mov dword [ebp - 0x1c], edi
call fcn.0041f17d
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
je 0x46c1cb
push ecx
push eax
lea eax, [ebp - 4]
call fcn.004390fc
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.0046c674
cmp eax, edi
je 0x46c20a
mov esi, eax
lea ecx, [ebp - 4]
call fcn.004058a3
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.0040932c
mov esi, dword [ebp + 0x28]
cmp dword [esi], edi
jbe 0x46c254
lea ecx, [ebp + 0x24]
call fcn.0040932c
push dword [esi]
lea eax, [ebp + 0x24]
push str.Range:_bytes_u__r_n
push eax
call fcn.0043e898
mov eax, dword [ebp + 0x24]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x1c]
call fcn.004390fc
lea ecx, [ebp + 0x24]
call fcn.004058a3
mov eax, dword [ebx + 0x40]
cmp eax, edi
je 0x46c265
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00439083
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
je 0x46c270
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 0x46c2ba
mov esi, ebx
call fcn.0046c725
xor esi, esi
cmp eax, esi
je 0x46c2bc
jmp 0x46c2c9
xor esi, esi
cmp dword [ebx + 0x2c], esi
je 0x46c2c6
mov dword [ebp + 0x24], esi
jmp 0x46c2cc
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 0x46c51e
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 0x46c313
mov dword [ebp + 0x10], eax
jmp 0x46c316
mov eax, dword [ebp + 0x10]
cmp byte [ebx + 0x54], 0
je 0x46c355
cmp dword [ebp + 0x18], 0x130
je 0x46c355
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 0x46c350
push 0x10
push eax
push esi
call fcn.0049cb00
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor esi, esi
mov edx, dword [ebp + 0x18]
mov ecx, 0x193
cmp edx, ecx
ja 0x46c49f
je 0x46c56f
mov ecx, edx
sub ecx, 0xc8
je 0x46c483
sub ecx, 6
je 0x46c46a
sub ecx, 0x62
je 0x46c53b
sub ecx, 0x61
jne 0x46c4bf
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 0x46c4ce
cmp eax, 0x2f0c
je 0x46c4ce
cmp eax, 0x2f06
je 0x46c4ce
cmp eax, 0x2f05
je 0x46c4ce
cmp eax, 0xe0000012
jne 0x46c5cd
lea edi, [ebx + 0x6c]
push 7
call fcn.0047937a
push 5
mov eax, edi
call fcn.004792fa
lea ecx, [ebp + 0x20]
call fcn.0040932c
lea ecx, [ebp + 0x14]
call fcn.0040932c
lea ecx, [ebp + 8]
call fcn.0040932c
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
push dword [ebx + 4]
push ebx
call fcn.0046cc76
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.0046ccec
push 4
test al, al
je 0x46c593
mov eax, edi
call fcn.004792fa
lea ecx, [ebp + 8]
call fcn.004058a3
lea ecx, [ebp + 0x14]
call fcn.004058a3
lea ecx, [ebp + 0x20]
call fcn.004058a3
jmp 0x46c270
cmp eax, esi
je 0x46c39b
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
jmp 0x46c3a5
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
cmp eax, esi
jbe 0x46c497
mov ecx, dword [ebp + 0x28]
cmp dword [ecx], eax
jae 0x46c555
mov eax, dword [ebp + 0x28]
jmp 0x46c3a3
mov ecx, edx
sub ecx, 0x194
je 0x46c5f9
sub ecx, 3
je 0x46c394
sub ecx, 3
je 0x46c5f9
mov ecx, dword [ebp + 0x28]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
jmp 0x46c3a5
lea edi, [ebx + 0x6c]
push 6
call fcn.0047937a
push 5
mov eax, edi
call fcn.004792fa
mov eax, dword [edi + 8]
mov esi, dword [ebx + 4]
test eax, eax
jne 0x46c4f1
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 0x46c5d9
mov eax, edi
call fcn.004792fa
lea esi, [ebp + 0x1c]
call fcn.00405ac6
jmp 0x46c270
push ebx
call fcn.0046cd43
lea ecx, [ebp + 0x1c]
mov esi, eax
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
jmp 0x46c1e6
lea ecx, [ebp + 0x1c]
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
mov esi, 0xe0000013
jmp 0x46c1e6
lea ecx, [ebp + 0x1c]
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
mov esi, 0xe0000010
jmp 0x46c1e6
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x1c]
mov dword [eax], esi
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
mov esi, 0xe0000016
jmp 0x46c1e6
lea eax, [ebx + 0x6c]
call fcn.004792fa
lea ecx, [ebp + 8]
call fcn.004058a3
lea ecx, [ebp + 0x14]
call fcn.004058a3
lea ecx, [ebp + 0x20]
call fcn.004058a3
lea ecx, [ebp + 0x1c]
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
mov esi, 0xe0000012
jmp 0x46c1e6
cmp eax, esi
jne 0x46c5e1
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
jmp 0x46c5e1
lea eax, [ebx + 0x6c]
call fcn.004792fa
lea ecx, [ebp + 0x1c]
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
mov esi, dword [ebp + 0x24]
jmp 0x46c1e6
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x1c]
mov dword [eax], esi
call fcn.004058a3
lea edi, [ebp - 0x10]
call fcn.0046cd56
mov esi, 0xe0000018
jmp 0x46c1e6