Function at 0x41bed0
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.0041c428
test eax, eax
jne 0x41bf86
cmp byte [ebp + 0x24], 0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x24], eax
mov esi, 0x8440c000
je 0x41bf16
mov esi, 0x84c0c000
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and dword [ebp - 0x28], 0
sub eax, 0x10
mov dword [ebp - 0x2c], 0x453a28
call fcn.00409cf1
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x41bf4a
push ecx
push eax
lea eax, [ebp - 4]
call fcn.00402306
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
mov eax, edi
push dword [ebp + 0xc]
push dword [edi + 0x10]
call fcn.0041c47f
test eax, eax
je 0x41bf8d
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
push 0
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [ebp - 0x24]
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 - 0x1c], eax
mov eax, dword [0x45a140]
mov esi, 0x45a140
mov ecx, esi
mov dword [ebp - 0x18], 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 0x41bff5
mov eax, dword [0x45a140]
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.004097a8
mov esi, dword [ebp + 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea eax, [ebp + 0x24]
push esi
call fcn.00402306
lea eax, [esi - 0x10]
call fcn.00404644
mov ebx, dword [ebp + 0x24]
mov eax, dword [edi + 0x40]
cmp dword [eax - 0xc], 0
je 0x41c00d
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x24]
call fcn.00402306
mov ebx, dword [ebp + 0x24]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x41c018
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 - 0x14], 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 - 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x41c05e
mov esi, edi
call fcn.0041c530
test eax, eax
jne 0x41c06d
cmp dword [edi + 0x2c], 0
je 0x41c06a
and dword [ebp + 0x10], 0
jmp 0x41c070
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 - 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push dword [edi + 0xc]
mov dword [ebp - 0xc], 4
call esi
test eax, eax
je 0x41c339
and dword [ebp + 0x1c], 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x20000005
push dword [edi + 0xc]
call esi
test eax, eax
jne 0x41c0c0
xor ecx, ecx
mov dword [ebp + 0x1c], ecx
jmp 0x41c0c5
mov ecx, dword [ebp + 0x1c]
xor eax, eax
cmp byte [edi + 0x54], 0
je 0x41c106
cmp dword [ebp + 0x18], 0x130
je 0x41c106
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x44]
push ecx
push 0x4000000b
push dword [edi + 0xc]
mov dword [ebp - 0x14], 0x10
call esi
test eax, eax
jne 0x41c101
push 0x10
push eax
lea eax, [edi + 0x44]
push eax
call fcn.004318c0
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov esi, dword [ebp + 0x18]
mov edx, 0x193
cmp esi, edx
ja 0x41c28e
je 0x41c38a
mov edx, esi
sub edx, 0xc8
je 0x41c272
sub edx, 6
je 0x41c259
sub edx, 0x62
je 0x41c356
sub edx, 0x61
jne 0x41c2ae
mov dword [ebp + 0x10], 0xe0000012
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0x2f0d
je 0x41c2bd
cmp esi, 0x2f0c
je 0x41c2bd
cmp esi, 0x2f06
je 0x41c2bd
cmp esi, 0x2f05
je 0x41c2bd
cmp esi, 0xe0000012
jne 0x41c3f1
mov eax, dword [0x45a140]
mov esi, 0x45a140
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x18]
push dword [edi + 0xc]
call fcn.0041cab6
cmp dword [ebp + 0x18], 0x197
mov eax, dword [0x45a140]
mov ecx, esi
sete byte [ebp - 0x10]
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp - 0x10], 0
mov dword [ebp + 8], eax
je 0x41c205
push dword [edi + 0xc]
lea eax, [ebp + 8]
call fcn.0041cbea
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x14]
push eax
push dword [edi + 0xc]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 8]
mov esi, edi
call fcn.0041cb65
test al, al
mov eax, dword [ebp + 8]
je 0x41c3ae
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
jmp 0x41c018
cmp ecx, eax
je 0x41c14c
mov edx, dword [ebp + 0x28]
mov edx, dword [edx]
add edx, ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], edx
jmp 0x41c156
mov edx, dword [ebp + 0x2c]
mov dword [edx], ecx
cmp ecx, eax
jbe 0x41c286
mov edx, dword [ebp + 0x28]
cmp dword [edx], ecx
jae 0x41c370
mov ecx, dword [ebp + 0x28]
jmp 0x41c154
mov edx, esi
sub edx, 0x194
je 0x41c404
sub edx, 3
je 0x41c145
sub edx, 3
je 0x41c404
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov edx, dword [ebp + 0x2c]
mov dword [edx], ecx
jmp 0x41c156
cmp byte [edi + 0x75], 0
je 0x41c319
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x20]
push eax
push 0x1f
push esi
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x41c301
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 0x41c329
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
mov esi, dword [ebp + 0x10]
jmp 0x41bf65
push dword [edi + 0xc]
lea eax, [edi + 4]
push esi
call fcn.004280e5
test eax, eax
jne 0x41c341
lea esi, [ebp + 0x24]
call fcn.004045b8
mov ebx, dword [ebp + 0x24]
jmp 0x41c018
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
jmp 0x41bf65
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
mov esi, 0xe0000013
jmp 0x41bf65
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
mov esi, 0xe0000010
jmp 0x41bf65
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
mov esi, 0xe0000016
jmp 0x41bf65
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
mov esi, 0xe0000012
jmp 0x41bf65
cmp esi, eax
jne 0x41c341
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
jmp 0x41c341
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
lea eax, [ebx - 0x10]
call fcn.00404644
lea edi, [ebp - 0x1c]
call fcn.0041cca2
mov esi, 0xe0000018
jmp 0x41bf65