Function at 0x41be3f
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.0041c397
test eax, eax
jne 0x41bef5
cmp byte [ebp + 0x24], 0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov dword [ebp - 0x24], eax
mov esi, 0x8440c000
je 0x41be85
mov esi, 0x84c0c000
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and dword [ebp - 0x28], 0
sub eax, 0x10
mov dword [ebp - 0x2c], 0x453a30
call fcn.00409c7d
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 0x41beb9
push ecx
push eax
lea eax, [ebp - 4]
call fcn.004022f6
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.0041c3ee
test eax, eax
je 0x41befc
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
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 0x41bf64
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.00409762
mov esi, dword [ebp + 0x1c]
add esp, 0xc
push dword [esi - 0xc]
lea eax, [ebp + 0x24]
push esi
call fcn.004022f6
lea eax, [esi - 0x10]
call fcn.00404645
mov ebx, dword [ebp + 0x24]
mov eax, dword [edi + 0x40]
cmp dword [eax - 0xc], 0
je 0x41bf7c
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x24]
call fcn.004022f6
mov ebx, dword [ebp + 0x24]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x41bf87
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 0x41bfcd
mov esi, edi
call fcn.0041c49f
test eax, eax
jne 0x41bfdc
cmp dword [edi + 0x2c], 0
je 0x41bfd9
and dword [ebp + 0x10], 0
jmp 0x41bfdf
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 0x41c2a8
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 0x41c02f
xor ecx, ecx
mov dword [ebp + 0x1c], ecx
jmp 0x41c034
mov ecx, dword [ebp + 0x1c]
xor eax, eax
cmp byte [edi + 0x54], 0
je 0x41c075
cmp dword [ebp + 0x18], 0x130
je 0x41c075
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 0x41c070
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 0x41c1fd
je 0x41c2f9
mov edx, esi
sub edx, 0xc8
je 0x41c1e1
sub edx, 6
je 0x41c1c8
sub edx, 0x62
je 0x41c2c5
sub edx, 0x61
jne 0x41c21d
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 0x41c22c
cmp esi, 0x2f0c
je 0x41c22c
cmp esi, 0x2f06
je 0x41c22c
cmp esi, 0x2f05
je 0x41c22c
cmp esi, 0xe0000012
jne 0x41c360
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.0041ca25
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 0x41c174
push dword [edi + 0xc]
lea eax, [ebp + 8]
call fcn.0041cb59
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.0041cad4
test al, al
mov eax, dword [ebp + 8]
je 0x41c31d
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x41bf87
cmp ecx, eax
je 0x41c0bb
mov edx, dword [ebp + 0x28]
mov edx, dword [edx]
add edx, ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], edx
jmp 0x41c0c5
mov edx, dword [ebp + 0x2c]
mov dword [edx], ecx
cmp ecx, eax
jbe 0x41c1f5
mov edx, dword [ebp + 0x28]
cmp dword [edx], ecx
jae 0x41c2df
mov ecx, dword [ebp + 0x28]
jmp 0x41c0c3
mov edx, esi
sub edx, 0x194
je 0x41c373
sub edx, 3
je 0x41c0b4
sub edx, 3
je 0x41c373
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov edx, dword [ebp + 0x2c]
mov dword [edx], ecx
jmp 0x41c0c5
cmp byte [edi + 0x75], 0
je 0x41c288
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 0x41c270
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 0x41c298
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
mov esi, dword [ebp + 0x10]
jmp 0x41bed4
push dword [edi + 0xc]
lea eax, [edi + 4]
push esi
call fcn.00428250
test eax, eax
jne 0x41c2b0
lea esi, [ebp + 0x24]
call fcn.004045a9
mov ebx, dword [ebp + 0x24]
jmp 0x41bf87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
jmp 0x41bed4
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
mov esi, 0xe0000013
jmp 0x41bed4
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
mov esi, 0xe0000010
jmp 0x41bed4
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
mov esi, 0xe0000016
jmp 0x41bed4
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
mov esi, 0xe0000012
jmp 0x41bed4
cmp esi, eax
jne 0x41c2b0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
jmp 0x41c2b0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
lea eax, [ebx - 0x10]
call fcn.00404645
lea edi, [ebp - 0x1c]
call fcn.0041cc11
mov esi, 0xe0000018
jmp 0x41bed4