Function at 0x41bd2b
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 3
push dword [ebp + 0x1c]
mov edi, ecx
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0041c248
test eax, eax
jne 0x41bde1
cmp byte [ebp + 0x24], 0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x20], eax
mov esi, 0x8440c000
je 0x41bd71
mov esi, 0x84c0c000
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and dword [ebp - 0x24], 0
sub eax, 0x10
mov dword [ebp - 0x28], 0x4529ec
call fcn.00409c66
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x41bda5
push ecx
push eax
lea eax, [ebp + 0x14]
call fcn.004022eb
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
mov eax, edi
push dword [ebp + 0xc]
push dword [edi + 0x10]
call fcn.0041c29f
test eax, eax
je 0x41bde8
mov esi, eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040464c
push 0
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x28
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x459100]
mov esi, 0x459100
mov ecx, esi
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [ebp + 0x28]
add ebx, 0x10
cmp dword [eax], 0
mov dword [ebp + 0x24], ebx
jbe 0x41be50
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x28]
push dword [eax]
lea eax, [ebp + 0x1c]
push str.Range:_bytes_u__r_n
push eax
call fcn.0040971d
mov esi, dword [ebp + 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea eax, [ebp + 0x24]
push esi
call fcn.004022eb
lea eax, [esi - 0x10]
call fcn.0040464c
mov ebx, dword [ebp + 0x24]
mov eax, dword [edi + 0x40]
cmp dword [eax - 0xc], 0
je 0x41be68
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x24]
call fcn.004022eb
mov ebx, dword [ebp + 0x24]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x41be73
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebx - 0xc]
mov eax, dword [edi + 0xc]
push dword [edi + 0x58]
mov dword [ebp + 0x10], esi
neg esi
sbb esi, esi
and esi, ebx
mov dword [ebp - 0xc], eax
mov dword [edi + 0x30], 7
mov byte [edi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x41beb9
mov esi, edi
call fcn.0041c350
test eax, eax
jne 0x41bec8
cmp dword [edi + 0x2c], 0
je 0x41bec5
and dword [ebp + 0x10], 0
jmp 0x41becb
mov eax, dword [edi + 0x28]
mov dword [ebp + 0x10], eax
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
and dword [ebp + 0x18], 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push dword [edi + 0xc]
mov dword [ebp - 8], 4
call esi
test eax, eax
je 0x41c164
and dword [ebp + 0x1c], 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x20000005
push dword [edi + 0xc]
call esi
xor ecx, ecx
test eax, eax
jne 0x41bf1b
mov dword [ebp + 0x1c], eax
jmp 0x41bf1e
mov eax, dword [ebp + 0x1c]
cmp byte [edi + 0x54], 0
je 0x41bf5f
cmp dword [ebp + 0x18], 0x130
je 0x41bf5f
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea eax, [edi + 0x44]
push eax
push 0x4000000b
push dword [edi + 0xc]
mov dword [ebp - 0xc], 0x10
call esi
test eax, eax
jne 0x41bf5a
push 0x10
push eax
lea eax, [edi + 0x44]
push eax
call fcn.00431420
add esp, 0xc
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov esi, dword [ebp + 0x18]
mov edx, 0x193
cmp esi, edx
ja 0x41c0b9
je 0x41c1b5
mov edx, esi
sub edx, 0xc8
je 0x41c09d
sub edx, 6
je 0x41c084
sub edx, 0x62
je 0x41c181
sub edx, 0x61
jne 0x41c0d9
mov dword [ebp + 0x10], 0xe0000012
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
cmp esi, 0x2f0d
je 0x41c0e8
cmp esi, 0x2f0c
je 0x41c0e8
cmp esi, 0x2f06
je 0x41c0e8
cmp esi, 0x2f05
je 0x41c0e8
cmp esi, 0xe0000012
jne 0x41c211
mov eax, dword [0x459100]
mov esi, 0x459100
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
push dword [edi + 0xc]
call fcn.0041c8d6
cmp dword [ebp + 0x18], 0x197
lea ecx, [ebp - 4]
sete al
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push dword [edi + 0xc]
lea eax, [ebp + 0xc]
mov esi, edi
call fcn.0041c957
test al, al
mov eax, dword [ebp + 8]
je 0x41c1d9
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x41be73
cmp eax, ecx
je 0x41bfa5
mov edx, dword [ebp + 0x28]
mov edx, dword [edx]
add edx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], edx
jmp 0x41bfaf
mov edx, dword [ebp + 0x2c]
mov dword [edx], eax
cmp eax, ecx
jbe 0x41c0b1
mov edx, dword [ebp + 0x28]
cmp dword [edx], eax
jae 0x41c19b
mov eax, dword [ebp + 0x28]
jmp 0x41bfad
mov edx, esi
sub edx, 0x194
je 0x41c224
sub edx, 3
je 0x41bf9e
sub edx, 3
je 0x41c224
mov edx, dword [ebp + 0x28]
mov dword [edx], ecx
mov edx, dword [ebp + 0x2c]
mov dword [edx], eax
jmp 0x41bfaf
cmp byte [edi + 0x75], 0
je 0x41c144
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x20]
push eax
push 0x1f
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x41c12c
or dword [ebp + 0x20], 0x3f05
push 4
lea eax, [ebp + 0x20]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
jne 0x41c154
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
mov esi, dword [ebp + 0x10]
jmp 0x41bdc0
push dword [edi + 0xc]
lea eax, [edi + 4]
push esi
call fcn.00427d37
test eax, eax
jne 0x41c16c
lea esi, [ebp + 0x24]
call fcn.004045a5
mov ebx, dword [ebp + 0x24]
jmp 0x41be73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
jmp 0x41bdc0
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
mov esi, 0xe0000013
jmp 0x41bdc0
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
mov esi, 0xe0000010
jmp 0x41bdc0
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
mov esi, 0xe0000016
jmp 0x41bdc0
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
mov esi, 0xe0000012
jmp 0x41bdc0
cmp esi, ecx
jne 0x41c16c
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
jmp 0x41c16c
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
lea eax, [ebx - 0x10]
call fcn.0040464c
lea edi, [ebp - 0x18]
call fcn.0041c9d1
mov esi, 0xe0000018
jmp 0x41bdc0