Function at 0x4249d5
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 3
push dword [ebp + 0x24]
mov edi, eax
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x34]
push dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.00424f2a
cmp eax, ebx
jne 0x424a92
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
mov dword [ebp - 0x20], eax
mov esi, 0x8440c000
cmp byte [ebp + 0x2c], bl
je 0x424a23
mov esi, 0x84c0c000
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x28], 0x45410c
mov dword [ebp - 0x24], ebx
call fcn.00409bcb
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x424a56
push ecx
push eax
lea eax, [ebp + 0x1c]
call fcn.00402288
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x1c]
mov eax, edi
push dword [ebp + 0x10]
push dword [edi + 8]
call fcn.00424f81
cmp eax, ebx
je 0x424a99
mov esi, eax
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
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 0x30
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x45a180]
mov esi, 0x45a180
mov ecx, esi
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
mov ebx, dword [ebp + 0x30]
add eax, 0x10
cmp dword [ebx], 0
mov dword [ebp + 0x2c], eax
jbe 0x424af9
mov eax, dword [0x45a180]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx]
add eax, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push str.Range:_bytes_u__r_n
push eax
call fcn.00409682
mov esi, dword [ebp + 0x18]
add esp, 0xc
push dword [esi - 0xc]
lea eax, [ebp + 0x2c]
push esi
call fcn.00402288
lea eax, [esi - 0x10]
call fcn.004045dc
mov eax, dword [edi + 0x44]
cmp dword [eax - 0xc], 0
je 0x424b0e
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x2c]
call fcn.00402288
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x424b19
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x2c]
mov ebx, dword [eax - 0xc]
push dword [edi + 0x5c]
mov esi, ebx
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [edi + 4]
mov dword [ebp + 0x18], eax
mov dword [edi + 0x34], 7
mov byte [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push ebx
push esi
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x424b63
mov esi, edi
call fcn.00425032
xor ebx, ebx
cmp eax, ebx
je 0x424b65
jmp 0x424b72
xor ebx, ebx
cmp dword [edi + 0x30], ebx
je 0x424b6f
mov dword [ebp + 0x18], ebx
jmp 0x424b75
mov eax, dword [edi + 0x2c]
mov dword [ebp + 0x18], eax
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x20]
push eax
push 0x20000013
push dword [edi + 4]
mov dword [ebp + 0x20], ebx
mov dword [ebp - 8], 4
call esi
test eax, eax
je 0x424e3d
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x24]
push eax
push 0x20000005
push dword [edi + 4]
mov dword [ebp + 0x24], ebx
call esi
test eax, eax
jne 0x424bbf
mov dword [ebp + 0x24], eax
jmp 0x424bc2
mov eax, dword [ebp + 0x24]
cmp byte [edi + 0x58], 0
je 0x424c01
cmp dword [ebp + 0x20], 0x130
je 0x424c01
push 0
lea eax, [ebp - 0x10]
push eax
lea ebx, [edi + 0x48]
push ebx
push 0x4000000b
push dword [edi + 4]
mov dword [ebp - 0x10], 0x10
call esi
test eax, eax
jne 0x424bfc
push 0x10
push eax
push ebx
call fcn.004315c0
add esp, 0xc
mov eax, dword [ebp + 0x24]
xor ebx, ebx
mov edx, dword [ebp + 0x20]
mov ecx, 0x193
cmp edx, ecx
ja 0x424d89
je 0x424e97
mov ecx, edx
sub ecx, 0xc8
je 0x424d6b
sub ecx, 6
je 0x424d4c
sub ecx, 0x62
je 0x424e5d
sub ecx, 0x61
jne 0x424da9
mov dword [ebp + 0x18], 0xe0000012
mov esi, dword [ebp + 0x18]
cmp esi, 0x2f0d
je 0x424dc3
cmp esi, 0x2f0c
je 0x424dc3
cmp esi, 0x2f06
je 0x424dc3
cmp esi, 0x2f05
je 0x424dc3
cmp esi, 0xe0000012
jne 0x424efa
mov eax, dword [0x45a180]
mov esi, 0x45a180
mov ecx, esi
call dword [eax + 0xc]
push 0x10
pop ebx
add eax, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x20]
push dword [edi + 4]
call fcn.004255ff
cmp dword [ebp + 0x20], 0x197
mov eax, dword [0x45a180]
mov ecx, esi
sete byte [ebp - 0xc]
call dword [eax + 0xc]
add eax, ebx
cmp byte [ebp - 0xc], 0
mov dword [ebp + 0x14], eax
je 0x424cd7
push dword [edi + 4]
lea eax, [ebp + 0x14]
call fcn.00425732
mov eax, dword [0x45a180]
mov ecx, esi
call dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [0x45a180]
mov ecx, esi
call dword [eax + 0xc]
add eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push dword [edi + 4]
lea ecx, [ebp - 4]
mov esi, edi
call fcn.004256ae
test al, al
mov eax, dword [ebp + 0x10]
je 0x424eb4
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x424b19
cmp eax, ebx
jne 0x424d5a
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x34]
jmp 0x424d82
mov ecx, dword [ebp + 0x30]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x34]
mov dword [eax], ecx
jmp 0x424c47
mov ecx, dword [ebp + 0x34]
mov dword [ecx], eax
cmp eax, ebx
jbe 0x424d7f
mov ecx, dword [ebp + 0x30]
cmp dword [ecx], eax
jae 0x424e7a
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
jmp 0x424c47
mov ecx, edx
sub ecx, 0x194
je 0x424f0d
sub ecx, 3
je 0x424c40
sub ecx, 3
je 0x424f0d
mov esi, dword [ebp + 0x18]
cmp esi, ebx
jne 0x424c47
mov ecx, dword [ebp + 0x30]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x34]
mov dword [ecx], eax
jmp 0x424f02
cmp byte [edi + 0x79], 0
je 0x424e20
mov esi, dword [edi + 4]
push 4
pop ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
push 0x1f
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x424e05
or dword [ebp + 0x28], 0x3f05
push ebx
lea eax, [ebp + 0x28]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
jne 0x424e30
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
mov esi, dword [ebp + 0x18]
jmp 0x424a71
push dword [edi + 4]
lea eax, [edi + 0xc]
push esi
call fcn.0042fa61
test eax, eax
jne 0x424e45
lea esi, [ebp + 0x2c]
call fcn.00404535
jmp 0x424b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
jmp 0x424a71
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
mov esi, 0xe0000013
jmp 0x424a71
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
mov esi, 0xe0000010
jmp 0x424a71
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
mov esi, 0xe0000016
jmp 0x424a71
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
mov esi, 0xe0000012
jmp 0x424a71
cmp esi, ebx
jne 0x424e45
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
jmp 0x424e45
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebp - 0x18]
call fcn.004257ea
mov esi, 0xe0000018
jmp 0x424a71