Function at 0x413372
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
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.0041381e
cmp eax, ebx
jne 0x413419
mov eax, dword [edi]
mov dword [edi + 8], eax
mov esi, 0x8440c000
cmp byte [ebp + 0x28], bl
je 0x4133b0
mov esi, 0x84c0c000
cmp byte [ebp + 0x24], bl
je 0x4133bb
or esi, 0x200000
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x10], 0x438a3c
mov dword [ebp - 0xc], ebx
call fcn.00407082
mov ecx, eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add ecx, 0x10
mov dword [ebp + 8], ecx
cmp edx, ebx
je 0x4133f3
push edx
push eax
lea eax, [ebp + 8]
call fcn.00401663
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push eax
push ecx
push dword [ebp + 0xc]
mov eax, edi
push dword [edi + 8]
call fcn.00413873
cmp eax, ebx
je 0x413420
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x2c
mov eax, dword [0x43d85c]
mov esi, 0x43d85c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x2c]
cmp dword [eax], ebx
jbe 0x413479
mov eax, dword [0x43d85c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x2c]
push dword [eax]
lea eax, [ebp + 0x24]
push str.Range:_bytes_u__r_n
push eax
call fcn.00406c06
mov esi, dword [ebp + 0x24]
add esp, 0xc
push dword [esi - 0xc]
lea eax, [ebp + 0x28]
push esi
call fcn.00401663
lea eax, [esi - 0x10]
call fcn.004039c4
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x41348a
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.0040147d
mov ecx, dword [edi + 0x18]
cmp ecx, ebx
je 0x413495
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x28]
mov esi, dword [eax - 0xc]
push dword [edi + 0x5c]
mov dword [ebp + 0x18], esi
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov dword [edi + 0x34], 7
mov byte [edi + 0x38], bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push ebx
push dword [ebp + 0x18]
push esi
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4134da
mov esi, edi
call fcn.00413920
cmp eax, ebx
jne 0x4134e7
cmp dword [edi + 0x30], ebx
je 0x4134e4
mov dword [ebp + 0x18], ebx
jmp 0x4134ea
mov eax, dword [edi + 0x2c]
mov dword [ebp + 0x18], eax
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x24]
push eax
push 0x20000013
push dword [edi]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0xc], 4
call esi
test eax, eax
je 0x413759
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x20000005
push dword [edi]
call esi
test eax, eax
jne 0x41352f
mov dword [ebp + 0x1c], eax
jmp 0x413532
mov eax, dword [ebp + 0x1c]
cmp byte [edi + 0x58], bl
je 0x41356f
cmp dword [ebp + 0x24], 0x130
je 0x41356f
push ebx
lea ecx, [ebp - 8]
push ecx
lea eax, [edi + 0x48]
push eax
push 0x4000000b
push dword [edi]
mov dword [ebp - 8], 0x10
call esi
test eax, eax
jne 0x41356c
push 0x10
lea eax, [edi + 0x48]
push ebx
push eax
call fcn.00423730
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov ecx, 0x193
cmp edx, ecx
ja 0x4136e0
je 0x41379b
mov ecx, edx
sub ecx, 0xc8
je 0x4136c4
sub ecx, 6
je 0x4136ab
sub ecx, 0x62
je 0x413771
sub ecx, 0x61
jne 0x413700
mov dword [ebp + 0x18], 0xe0000012
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov esi, dword [ebp + 0x18]
cmp esi, 0x2f0d
je 0x41370f
cmp esi, 0x2f0c
je 0x41370f
cmp esi, 0x2f06
je 0x41370f
cmp esi, 0x2f05
je 0x41370f
cmp esi, 0xe0000012
jne 0x413761
push 7
call fcn.004140f9
push 5
pop ecx
mov eax, edi
call fcn.00413a19
mov eax, dword [0x43d85c]
mov esi, 0x43d85c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov eax, dword [0x43d85c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov eax, dword [0x43d85c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x24]
push dword [edi]
call fcn.00414022
cmp dword [ebp + 0x24], 0x197
lea ecx, [ebp + 0x20]
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push eax
push dword [edi]
lea eax, [ebp + 0x14]
mov esi, edi
call fcn.004140a3
push 4
test al, al
pop ecx
mov eax, edi
je 0x4137ba
call fcn.00413a19
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x413495
cmp eax, ebx
je 0x4135b5
mov ecx, dword [ebp + 0x2c]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
jmp 0x4135bf
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
cmp eax, ebx
jbe 0x4136d8
mov ecx, dword [ebp + 0x2c]
cmp dword [ecx], eax
jae 0x413786
mov eax, dword [ebp + 0x2c]
jmp 0x4135bd
mov ecx, edx
sub ecx, 0x194
je 0x4137ff
sub ecx, 3
je 0x4135ae
sub ecx, 3
je 0x4137ff
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x4135bf
push 6
call fcn.004140f9
push 5
pop ecx
mov eax, edi
call fcn.00413a19
mov eax, dword [edi + 0x68]
cmp eax, ebx
jne 0x41372d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ebx
push 7
push esi
push dword [edi]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
push 4
test eax, eax
pop ecx
mov eax, edi
jne 0x4137f5
call fcn.00413a19
lea esi, [ebp + 0x28]
call fcn.0040391d
jmp 0x413495
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x41340c
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
call fcn.004039c4
mov esi, 0xe0000013
jmp 0x41340c
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
call fcn.004039c4
mov esi, 0xe0000010
jmp 0x41340c
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
call fcn.004039c4
mov esi, 0xe0000016
jmp 0x41340c
call fcn.00413a19
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
call fcn.004039c4
mov esi, 0xe0000012
jmp 0x41340c
call fcn.00413a19
jmp 0x413761
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
call fcn.004039c4
mov esi, 0xe0000018
jmp 0x41340c