Function at 0x42daaf
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, ebx
call fcn.0042d0cc
test eax, eax
jne 0x42db63
cmp byte [ebp + 0x24], 0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x20], eax
mov esi, 0x8440c000
je 0x42daf6
mov esi, 0x84c0c000
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and dword [ebp - 0x24], 0
sub eax, 0x10
mov dword [ebp - 0x28], 0x43c618
call fcn.00401a81
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 0x42db2a
push ecx
push eax
lea eax, [ebp + 0x14]
call fcn.004019ec
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
mov eax, ebx
push dword [ebx + 0x10]
call fcn.0042d06c
test eax, eax
je 0x42db6a
mov esi, eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040169e
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 [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x443838]
mov edi, 0x443838
mov ecx, edi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x28]
add esi, 0x10
cmp dword [eax], 0
mov dword [ebp + 0x24], esi
jbe 0x42dbd0
mov eax, dword [0x443838]
mov ecx, edi
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
call fcn.004022b1
mov esi, dword [ebp + 0x1c]
pop ecx
pop ecx
push dword [esi - 0xc]
lea eax, [ebp + 0x24]
push esi
call fcn.004019ec
lea eax, [esi - 0x10]
call fcn.0040169e
mov esi, dword [ebp + 0x24]
mov eax, dword [ebx + 0x40]
cmp dword [eax - 0xc], 0
je 0x42dbe8
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x24]
call fcn.004019ec
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x42dbf3
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi - 0xc]
mov eax, ecx
neg eax
sbb eax, eax
and eax, esi
push ecx
push eax
push dword [ebx + 0xc]
mov eax, ebx
call fcn.0042d021
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
and dword [ebp + 0x18], 0
push 0
mov dword [ebp + 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push dword [ebx + 0xc]
mov dword [ebp - 8], 4
call edi
test eax, eax
je 0x42de65
and dword [ebp + 0x1c], 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x20000005
push dword [ebx + 0xc]
call edi
xor ecx, ecx
test eax, eax
jne 0x42dc5d
mov dword [ebp + 0x1c], eax
jmp 0x42dc60
mov eax, dword [ebp + 0x1c]
cmp byte [ebx + 0x54], 0
je 0x42dca1
cmp dword [ebp + 0x18], 0x130
je 0x42dca1
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebx + 0x44]
push eax
push 0x4000000b
push dword [ebx + 0xc]
mov dword [ebp - 0xc], 0x10
call edi
test eax, eax
jne 0x42dc9c
push 0x10
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.0040f7e0
add esp, 0xc
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov edi, dword [ebp + 0x18]
mov edx, 0x193
cmp edi, edx
ja 0x42ddfd
je 0x42dec0
mov edx, edi
sub edx, 0xc8
je 0x42dde1
sub edx, 6
je 0x42ddc8
sub edx, 0x62
je 0x42de88
sub edx, 0x61
jne 0x42de1d
mov dword [ebp + 0x10], 0xe0000012
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, 0x2f0d
je 0x42de2c
cmp eax, 0x2f0c
je 0x42de2c
cmp eax, 0x2f06
je 0x42de2c
cmp eax, 0x2f05
je 0x42de2c
cmp eax, 0xe0000012
jne 0x42df21
mov eax, dword [0x443838]
mov esi, 0x443838
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x443838]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov eax, dword [0x443838]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
push dword [ebx + 0xc]
call fcn.0042da0b
cmp dword [ebp + 0x18], 0x197
mov esi, dword [ebp + 8]
sete al
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
push dword [ebx + 0xc]
lea edi, [ebp + 0x20]
lea ebx, [ebp - 4]
call fcn.0042d397
test al, al
mov eax, dword [ebp + 0xc]
je 0x42dee6
add eax, 0xfffffff0
call fcn.0040169e
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
call fcn.0040169e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040169e
mov esi, dword [ebp + 0x24]
mov ebx, dword [ebp + 8]
jmp 0x42dbf3
cmp eax, ecx
je 0x42dce7
mov edx, dword [ebp + 0x28]
mov edx, dword [edx]
add edx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], edx
jmp 0x42dcf1
mov edx, dword [ebp + 0x2c]
mov dword [edx], eax
cmp eax, ecx
jbe 0x42ddf5
mov edx, dword [ebp + 0x28]
cmp dword [edx], eax
jae 0x42dea4
mov eax, dword [ebp + 0x28]
jmp 0x42dcef
mov edx, edi
sub edx, 0x194
je 0x42df45
sub edx, 3
je 0x42dce0
sub edx, 3
je 0x42df45
mov edx, dword [ebp + 0x28]
mov dword [edx], ecx
mov edx, dword [ebp + 0x2c]
mov dword [edx], eax
jmp 0x42dcf1
cmp byte [ebx + 0x75], 0
push dword [ebx + 0xc]
je 0x42de44
call fcn.0042ccde
test al, al
je 0x42df2b
jmp 0x42de55
push eax
lea eax, [ebx + 4]
call fcn.0042cc72
test eax, eax
jne 0x42df2b
lea esi, [ebp + 0x24]
call fcn.0040165c
mov esi, dword [ebp + 0x24]
jmp 0x42dbf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x24], eax
lea eax, [esi - 0x10]
call fcn.0040169e
lea edi, [ebp - 0x18]
mov esi, ebx
call fcn.0042cf5b
mov esi, dword [ebp + 0x24]
jmp 0x42db42
lea eax, [esi - 0x10]
call fcn.0040169e
lea edi, [ebp - 0x18]
mov esi, ebx
call fcn.0042cf5b
mov esi, 0xe0000013
jmp 0x42db42
lea eax, [esi - 0x10]
call fcn.0040169e
lea edi, [ebp - 0x18]
mov esi, ebx
call fcn.0042cf5b
mov esi, 0xe0000010
jmp 0x42db42
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
lea eax, [esi - 0x10]
call fcn.0040169e
lea edi, [ebp - 0x18]
mov esi, ebx
call fcn.0042cf5b
mov esi, 0xe0000016
jmp 0x42db42
add eax, 0xfffffff0
call fcn.0040169e
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
call fcn.0040169e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040169e
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
call fcn.0040169e
lea edi, [ebp - 0x18]
call fcn.0042cf5b
mov esi, 0xe0000012
jmp 0x42db42
cmp eax, ecx
jne 0x42df2b
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
lea eax, [esi - 0x10]
call fcn.0040169e
lea edi, [ebp - 0x18]
mov esi, ebx
call fcn.0042cf5b
mov esi, dword [ebp + 0x10]
jmp 0x42db42
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
lea eax, [esi - 0x10]
call fcn.0040169e
lea edi, [ebp - 0x18]
mov esi, ebx
call fcn.0042cf5b
mov esi, 0xe0000018
jmp 0x42db42