Function at 0x459333
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.0045977e
cmp eax, ebx
jne 0x4593cd
mov eax, dword [edi]
mov dword [edi + 8], eax
mov esi, 0x8440c000
cmp byte [ebp + 0x28], bl
je 0x459371
mov esi, 0x84c0c000
cmp byte [ebp + 0x24], bl
je 0x45937c
or esi, 0x200000
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x10], 0x4bc05c
mov dword [ebp - 0xc], ebx
call fcn.00418dc7
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x4593a8
push ecx
push eax
lea eax, [ebp + 8]
call fcn.0043164c
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov eax, edi
push dword [ebp + 0xc]
push dword [edi + 8]
call fcn.004597d3
cmp eax, ebx
je 0x4593d4
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00403833
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x2c
lea eax, [ebp + 0x1c]
push eax
call fcn.004038ab
mov esi, dword [ebp + 0x2c]
cmp dword [esi], ebx
jbe 0x459417
lea eax, [ebp + 0x28]
push eax
call fcn.004038ab
push dword [esi]
lea eax, [ebp + 0x28]
push str.Range:_bytes_u__r_n
push eax
call fcn.00436b7a
mov eax, dword [ebp + 0x28]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x1c]
call fcn.0043164c
lea ecx, [ebp + 0x28]
call fcn.00403833
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x459428
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004315d3
mov ecx, dword [edi + 0x18]
cmp ecx, ebx
je 0x459433
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x1c]
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 0x459478
mov esi, edi
call fcn.00459880
cmp eax, ebx
jne 0x459485
cmp dword [edi + 0x30], ebx
je 0x459482
mov dword [ebp + 0x18], ebx
jmp 0x459488
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 + 0x28]
push eax
push 0x20000013
push dword [edi]
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0xc], 4
call esi
test eax, eax
je 0x4596d4
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x24]
push eax
push 0x20000005
push dword [edi]
call esi
test eax, eax
jne 0x4594cd
mov dword [ebp + 0x24], eax
jmp 0x4594d0
mov eax, dword [ebp + 0x24]
cmp byte [edi + 0x58], bl
je 0x45950d
cmp dword [ebp + 0x28], 0x130
je 0x45950d
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 0x45950a
push 0x10
lea eax, [edi + 0x48]
push ebx
push eax
call fcn.00483240
add esp, 0xc
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov ecx, 0x193
cmp edx, ecx
ja 0x45965b
je 0x45970d
mov ecx, edx
sub ecx, 0xc8
je 0x45963f
sub ecx, 6
je 0x459626
sub ecx, 0x62
je 0x4596e9
sub ecx, 0x61
jne 0x45967b
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 0x45968a
cmp esi, 0x2f0c
je 0x45968a
cmp esi, 0x2f06
je 0x45968a
cmp esi, 0x2f05
je 0x45968a
cmp esi, 0xe0000012
jne 0x4596dc
push 7
call fcn.0045a00f
push 5
pop ecx
mov eax, edi
call fcn.0045996e
lea eax, [ebp + 0x20]
push eax
call fcn.004038ab
lea eax, [ebp + 0x14]
push eax
call fcn.004038ab
lea eax, [ebp + 0x10]
push eax
call fcn.004038ab
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x28]
push dword [edi]
call fcn.00459f46
cmp dword [ebp + 0x28], 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.00459fb9
push 4
test al, al
pop ecx
mov eax, edi
je 0x459729
call fcn.0045996e
lea ecx, [ebp + 0x10]
call fcn.00403833
lea ecx, [ebp + 0x14]
call fcn.00403833
lea ecx, [ebp + 0x20]
call fcn.00403833
jmp 0x459433
cmp eax, ebx
je 0x459553
mov ecx, dword [ebp + 0x2c]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
jmp 0x45955d
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
cmp eax, ebx
jbe 0x459653
mov ecx, dword [ebp + 0x2c]
cmp dword [ecx], eax
jae 0x4596fb
mov eax, dword [ebp + 0x2c]
jmp 0x45955b
mov ecx, edx
sub ecx, 0x194
je 0x459762
sub ecx, 3
je 0x45954c
sub ecx, 3
je 0x459762
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x45955d
push 6
call fcn.0045a00f
push 5
pop ecx
mov eax, edi
call fcn.0045996e
mov eax, dword [edi + 0x68]
cmp eax, ebx
jne 0x4596a8
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 0x459758
call fcn.0045996e
lea esi, [ebp + 0x1c]
call fcn.00409e44
jmp 0x459433
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp + 0x1c]
call fcn.00403833
jmp 0x4593c3
lea ecx, [ebp + 0x1c]
call fcn.00403833
mov esi, 0xe0000013
jmp 0x4593c3
lea ecx, [ebp + 0x1c]
call fcn.00403833
mov esi, 0xe0000010
jmp 0x4593c3
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x1c]
mov dword [eax], ebx
call fcn.00403833
mov esi, 0xe0000016
jmp 0x4593c3
call fcn.0045996e
lea ecx, [ebp + 0x10]
call fcn.00403833
lea ecx, [ebp + 0x14]
call fcn.00403833
lea ecx, [ebp + 0x20]
call fcn.00403833
lea ecx, [ebp + 0x1c]
call fcn.00403833
mov esi, 0xe0000012
jmp 0x4593c3
call fcn.0045996e
jmp 0x4596dc
mov eax, dword [ebp + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x1c]
mov dword [eax], ebx
call fcn.00403833
mov esi, 0xe0000018
jmp 0x4593c3